welibc
A clear, secure, and well documented standard C library
|
Defines the memchr function. More...
#include <string.h>
Go to the source code of this file.
Functions | |
void * | memchr (const void *s, int c, size_t n) |
Searches for a given character. More... | |
Defines the memchr function.
Definition in file memchr.c.
void* memchr | ( | const void * | s, |
int | c, | ||
size_t | n | ||
) |
Searches for a given character.
*s | Object being searched |
c | Character to find |
n | Maximum number of character to search |
The memchr function locates the first occurrence of c (converted to an unsigned char) in the initial n characters (each interpreted as unsigned char) of the object pointed to by s.
NULL | The character does not occur in the object |
Definition at line 54 of file memchr.c.
References NULL.