Table of Contents
Previous topic Next topic
C LIBRARY FUNCTIONS->Detailed Descriptions->memchr()
|char *memchr(void *buf,int c, size_t count);||Find character in a buffer|
|buf||Pointer to buffer|
|c||Character to find|
|count||Number of characters to search|
This function looks for the first occurrence of c in the first count bytes of buf
It returns when it has found c or when it has searched count bytes.
If successful, the function returns a pointer to the first occurrence of c in buf. Otherwise it returns NULL.