wmemchr


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( )



C(c) In a Nutshell
C in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596006977
EAN: 2147483647
Year: 2006
Pages: 473

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net