STRCHR(3) Library Functions Manual STRCHR(3)
NAME
strchr — string
scanning operation
SYNOPSIS
#include <string.h> char *strchr(const char *s, int c);
DESCRIPTION
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.
RETURN VALUE
Upon completion, strchr() returns a pointer to the byte, or a null pointer if the byte was not found.
ERRORS
No errors are defined.
EXAMPLES
None.
APPLICATION USAGE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
strrchr(3) , <string.h> .
DERIVATION
Derived from Issue 1 of the SVID.
February 1997 posix.fail