[CHANGESET]: strtok should default to using all white space characters to match MATLAB
Ben Abbott
bpabbott at mac.com
Mon Aug 4 05:50:44 CDT 2008
On Aug 3, 2008, at 11:02 PM, David Dean wrote:
> --------
> Bug report for Octave 3.0.0 configured for i486-pc-linux-gnu
>
> Description:
> -----------
>
> As per title. The default call of strtok only considers spaces to
> deliminate tokens. The deliminator should default to be something like
> " \t\n" instead of just being " ".
>
> Repeat-By:
> ---------
>
>> a ="doc\tb"
>> [c,d] = strtok(a)
> c = doc b
> d =
>> [c,d] = strtok(a," \t")
> c = doc
> d = b
Tab (" \t") is added to the default delimiters and an additional test
is included.
Changeset attached.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: changeset-strtok.txt
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080804/2949c2b2/attachment.txt
-------------- next part --------------
More information about the Bug-octave
mailing list