memchr

Finds a character in a memory block.

void * memchr (void * buf, int c, size_t length);

Required Header
<string.h>

Return Value

This function returns a pointer to the found character, or NULL if the character could not be found.

Parameters

buf

  The memory block to search

c

  The character to search for

length

  The length of the memory blocks

Remarks

The memchr function search length bytes in buf for character c.

String

See Also    bcopy, memccpy, memcmp, memcpy, _memicmp, memmove, memset, strcpy, strncpy