memchr()

Syntax
  #include <string.h>

  
  void *memchr(const void *p, int ch, size_t n);

  
Description

memchr() looks for the first occurrence of a byte containing ( ch&0xFF) in the first n bytes of the memory are pointed to by p.

Return

A pointer to the byte found, or NULL if no such byte was found.

See also

memcmp()

strchr()

strrchr()