Share this page

# memchr

Example: memchr | String Manipulation Functions

Searches for a character in a buffer.

    void *memchr( const void *s, int c, size_t n);

s | The name of the buffer.
c | The character to search for in the buffer.
n | The number of characters at the beginning of the buffer to search.

## Return Values

A pointer to the first occurrence of c in buffer. If character is not found the function returns NULL.

For memchr details, refer to your C language documentation.

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: