Mistake in man on tokenize
Zhaolei
zhaolei@cn.fujitsu.com
Thu Oct 11 07:32:00 GMT 2007
Hi, everyone
In man stapfuncs, tokenize is explained as following:
tokenize:string (str:string, delim:string)
Given a string and a token delimiter, return the next token in the
string. If str is non-NULL, returns the first token. If str is NULL,
returns the next token in the str passed in the previous call to
tokenize(). Only the first character in delim is used as the delimiter.
Returns NULL when no more tokens are left.
But I found if delimiter includes more than 1 chars, Not only the first
character, but also all of characters will used as the delimiter.
So I think it is necessary to update man as following:
- Only the first character in delim is used as the delimiter.
+ Each character in delim is taken as a delimiting character.
If no objection, I will commit it.
Regards
Zhaolei
More information about the Systemtap
mailing list