memchr in C language

The C memchr function is a String Function, which will find the first occurrence of the character, and returns the pointer to it. This function uses its third argument to restrict the search. The basic syntax of the memchr in C Programming language is as shown below. void *memchr(const void *str, int c, size_t n); … Read more