3 <<strchrnul>>---search for character in string
10 char * strchrnul(const char *<[string]>, int <[c]>);
13 This function finds the first occurence of <[c]> (converted to
14 a char) in the string pointed to by <[string]> (including the
15 terminating null character).
18 Returns a pointer to the located character, or a pointer
19 to the concluding null byte if <[c]> does not occur in <[string]>.
22 <<strchrnul>> is a GNU extension.
24 <<strchrnul>> requires no supporting OS subroutines. It uses
25 strchr() and strlen() from elsewhere in this library.
34 strchrnul (const char *s1
,
37 char *s
= strchr(s1
, i
);
39 return s
? s
: (char *)s1
+ strlen(s1
);