Standard C Functions


memchr


Syntax

#include <string.h>
void *memchr(const void *buf, int c, size_t count);

Arguments

buf        pointer to the buffer area to be searched 
c          character (byte) to be found
count      number of bytes in the buffer to be searched

Return Value

A pointer to the character (byte) specified by the c argument, or NULL if the byte is not found

Description

Searches the buf memory area for the character (byte) specified by c.