C Run-Time Library Reference
memchr
find first occurrence of character
Synopsis
#include <string.h>
void *memchr(const void *s1, int c, size_t n);
Description
The
function compares the range of memory pointed to by
memchr
the input character
null pointer is returned if
Error Conditions
The
function does not return an error condition.
memchr
Example
#include <string.h>
char *ptr;
ptr= memchr("TESTING", 'E', 7);
/* ptr points to the E in TESTING
See Also
strchr,
strrchr
3-94
and returns a pointer to the first occurrence of
c
does not occur in the first
c
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
characters.
n
*/
for ADSP-219x DSPs
with
s1
. A
c
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?