Home > freetb4matlab > strings > strtok.m

strtok

PURPOSE ^

%

SYNOPSIS ^

function [tok, rem] = strtok (str, delim)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {[@var{tok}, @var{rem}] =} strtok (@var{str}, @var{delim})
% 
% Find all characters up to but not including the first character which
% is in the string delim.  If @var{rem} is requested, it contains the
% remainder of the string, starting at the first delimiter.  Leading
% delimiters are ignored.  If @var{delim} is not specified, space is
% assumed.  For example: 
%
% @example
% @group
% strtok ('this is the life')
%      @result{} 'this'
%
% [tok, rem] = strtok ('14*27+31', '+-*/')
%      @result{}
%         tok = 14
%         rem = *27+31
% @end group
% @end example
% @seealso{index, strsplit}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003