7.21.5.2 The strchr function

Synopsis

1

#include <string.h>
char *strchr(const char *s, int c);

Description

2

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

Returns

3

The strchr function returns a pointer to the located character, or a null pointer if the character does not occur in the string.