Home > Electronics Tutorials > C Language Tutorial > string.h - memchr

C Language Programming Library Reference Guide

string.h - memchr

Declaration: void *memchr(const void *str, int c, size_t n); Searches for the first occurrence of the character c (an unsigned char) in the first n bytes of the string pointed to by the argument str.

Returns a pointer pointing to the first matching character, or null if no match was found.

Note: To report broken links or to submit your projects, tutorials please email to Webmaster

Discover

     more......