unitok(3nw)


unitok -- searches string for tokens separated by specified delimiters

Synopsis

   #include <unicode.h> 
   

unicode N_FAR *N_API unitok (unicode N_FAR * s1, unicode N_FAR * s2);

Description

The parameters are as follows:

s1
(IN) Points to the string to parse.

s2
(IN) Points to the delimiter values.

Return values

Non-NULL
Pointer to the token found in s1.

NULL
No more tokens remain to be processed.

Notices

unitok considers s1 to consist of a sequence of zero or more text tokens, separated from the separator s2 by spans of one or more characters.

unitok corresponds to C strtok.

The first call to unitok returns a pointer to the first character of the first token in s1 and writes a null character into s1 immediately following the returned token. Subsequent calls with null for the first argument work through s1 in this way, until no tokens remain.

Services

Unicode

NCP calls

None
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.