__rawmemchr

Name

__rawmemchr -- scan memory

Synopsis

#include <string.h>

void * __rawmemchr(const void * s, int c);

Description

The __rawmemchr() function shall locate the first occurrence of c (converted to an unsigned char) in the object pointed to by s. If the byte does not occur in the object, then the behavior is undefined.

__rawmemchr() is a weak alias for rawmemchr(). It is similar to memchr(), but it has no length limit.

__rawmemchr() is not in the source standard; it is only in the binary standard.

Return Value

The __rawmemchr() function shall return a pointer to the located byte.