|
||
void *memchr( void *s, int ch, size_t count )
void *s; /* memory to search in */ int ch; /* character to search for */ size_t count; /* size in bytes of search area */
|
|
|
Synopsis |
#include "string.h"
The memchr function searches for the first occurrence of ch in the count bytes beginning at s .
|
|
Parameters |
s is the address of a memory buffer, at least count bytes in length. ch is any character value.
|
|
Return Value |
memchr returns a pointer to the location where ch is found, if any, and NULL otherwise.
|
|
See Also |
|
|
|
|