5 char *strchr(char const *s, int c);
7 char *strrchr(char const *s, int c);
10 The strchr() function returns a pointer to the first occurrence of the
11 character c in the string s.
13 The strrchr() function returns a pointer to the last occurrence of the
14 character c in the string s.
16 Here "character" means "byte" - these functions do not work with wide
17 or multi-byte characters.
20 The strchr() and strrchr() functions return a pointer to the matched
21 character or NULL if the character is not found.
24 SVID 3, POSIX, BSD 4.3, ISO 9899
28 strchr( char const *s, int c)
31 if ((unsigned)*s == (unsigned)c)
34 } while (*(++s) != NUL);
40 strrchr( char const *s, int c)
42 char const *e = s + strlen(s);
48 if ((unsigned)*e == (unsigned)c)
57 * c-file-style: "stroustrup"
58 * indent-tabs-mode: nil
60 * end of compat/strsignal.c */