strchr()

Syntax
  #include <string.h>

  
  char *strchr(const char *p, int ch);

  
Description

strchr() looks for character ch in string p. If ch is \0, the function looks for the end of the string.

Return

A pointer to the character, if found; if there is no such character in *p, NULL is returned.

See also

memchr()

strrchr()

strstr()