Previous Page
Next Page

wmemchr

Searches a memory block for a given wide character value

#include <wchar.h>
wchar_t *wmemchr ( const wchar_t *buffer , wchar_t wc , size_t n  );

The wmemchr( ) function searches for a wide character with the value of c in a buffer of n wide characters beginning at the address in the pointer argument buffer. The function returns a pointer to the first occurrence of the specified wide character in the buffer, or a null pointer if the wide character does not occur within the specified number of wide characters.

Example

See the example for wmemcpy( ) in this chapter.

See Also

wcschr( ), wcsrchr( ), wcsstr( ), wcsspn( ), and wcscspn( ); memchr( ), strchr( ), strrchr( ), strstr( ), strspn( ), and strcspn( )


Previous Page
Next Page