OAR

RTEMS GNU Tools On-Line Library


memchr

PREV UP NEXT Bookshelf

4.5: memchr---find character in memory

Synopsis

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

Description
This function searches memory starting at *src for the character c. The search only ends with the first occurrence of c, or after length characters; in particular, NULL does not terminate the search.


Returns
If the character c is found within length characters of *src, a pointer to the character is returned. If c is not found, then NULL is returned.


Portability
memchr> is ANSI C.

memchr requires no supporting OS subroutines.



PREV UP NEXT Bookshelf

Packaging copyright © 1988-2000 OAR Corporation
Context copyright by each document's author. See Free Software Foundation for information.