STRCHR(3) Library Functions Manual STRCHR(3)

strchrstring scanning operation

#include <string.h>

char *strchr(const char *s, int c);

The strchr() function locates the first occurrence of c (converted to an unsigned char ) in the string pointed to by s . The terminating null byte is considered to be part of the string.

Upon completion, strchr() returns a pointer to the byte, or a null pointer if the byte was not found.

No errors are defined.

None.

None.

None.

strrchr(3) , <string.h> .

Derived from Issue 1 of the SVID.

February 1997 posix.fail