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 strrchr(char const *s, int c);
34 strchr(char const *s, int c)
37 if ((unsigned char)*s == (unsigned char)c)
40 } while (*(++s) != NUL);
46 strrchr(char const *s, int c)
48 char const *e = s + strlen(s);
54 if ((unsigned char)*e == (unsigned char)c)
63 * c-file-style: "stroustrup"
64 * indent-tabs-mode: nil
66 * end of compat/strsignal.c */