NAME

memchr - find byte in memory

SYNOPSIS

#include "zkString.h"

void *memchr(const void *s, int c, size_t n);

DESCRIPTION

The memchr() function locates the first occurrence of c (converted to an unsigned char) in the initial n bytes (each interpreted as unsigned char) of the object pointed to by s.

RETURN VALUE

The memchr() function returns a pointer to the located byte, or NULL if the byte does not occur in the object.

ERRORS

No errors are defined.