This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Mistake in man on tokenize


Good catch.  I'll update the man page.  I need to make some other changes anyway, plus I need to update the Language Reference.

Regards,
Mike

Zhaolei wrote:
> 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
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]