memcmp

Defined in header <string.h> int memcmp( const void* lhs, const void* rhs, size_t count ); Compares the first count characters of the objects pointed to by lhs and rhs. The comparison is done lexicographically. The sign of the result is the sign of the difference between the values of the first pair of bytes (both interpreted as unsigned char) that differ in the objects being compared. The behavior is undefined if access occurs beyond the end of either object pointed to by

memchr

Defined in header <string.h> void* memchr( const void* ptr, int ch, size_t count ); Finds the first occurrence of ch (after conversion to unsigned char as if by (unsigned char)ch) in the initial count characters (each interpreted as unsigned char) of the object pointed to by ptr. The behavior is undefined if access occurs beyond the end of the array searched. The behavior is undefined if ptr is a null pointer. Parameters ptr - pointer to the object to be examined

mbtowc

Defined in header <stdlib.h> int mbtowc( wchar_t *pwc, const char *s, size_t n ) (until C99) int mbtowc( wchar_t *restrict pwc, const char *restrict s, size_t n ) (since C99) Converts a multibyte character whose first byte is pointed to by s to a wide character, written to *pwc if pwc is not null. If s is a null pointer, resets the global conversion state and determines whether shift sequences are used. Notes Each call to mbtowc updates the intern

mbstowcs

Defined in header <stdlib.h> (1) size_t mbstowcs( wchar_t *dst, const char *src, size_t len) (until C99) size_t mbstowcs( wchar_t *restrict dst, const char *restrict src, size_t len) (since C99) errno_t mbstowcs_s(size_t *restrict retval, wchar_t *restrict dst, rsize_t dstsz, const char *restrict src, rsize_t len); (2) (since C11) 1) Converts a multibyte character string from the array whose first element is pointed to by src

mbsinit

Defined in header <wchar.h> int mbsinit( const mbstate_t* ps); (since C95) If ps is not a null pointer, the mbsinit function determines whether the pointed-to mbstate_t object describes the initial conversion state. Notes Although a zero-initialized mbstate_t always represents the initial conversion state, there may be other values of mbstate_t that also represent the initial conversion state. Parameters ps - pointer to the mbstate_t object to examine Return

mbrtowc

Defined in header <wchar.h> size_t mbrtowc( wchar_t* pwc, const char* s, size_t n, mbstate_t* ps ); (since C95) Converts a narrow multibyte character to a wide character. If s is not a null pointer, inspects at most n bytes of the multibyte character string, beginning with the byte pointed to by s to determine the number of bytes necessary to complete the next multibyte character (including any shift sequences). If the function determines that the next multibyte character i

mbstate_t

Defined in header <wchar.h> struct mbstate_t; (since C95) The type mbstate_t is a trivial non-array type that can represent any of the conversion states that can occur in an implementation-defined set of supported multibyte character encoding rules. Zero-initialized value of mbstate_t represents the initial conversion state, although other values of mbstate_t may exist that also represent the initial conversion state. Possible implementation of mbstate_t is a struct type ho

mbsrtowcs

Defined in header <wchar.h> size_t mbsrtowcs( wchar_t* dst, const char** src, size_t len, mbstate_t* ps ) (1) (since C95) errno_t mbsrtowcs_s( size_t *restrict retval, wchar_t *restrict dst, rsize_t dstsz, const char **restrict src, rsize_t len, mbstate_t *restrict ps); (2) (since C11) 1) Converts a null-terminated multibyte character sequence, which begins in the conversion state described by *ps, from the array whose first element is pointed to

mblen

Defined in header <stdlib.h> int mblen( const char* s, size_t n ); Determines the size, in bytes, of the multibyte character whose first byte is pointed to by s. If s is a null pointer, resets the global conversion state and determined whether shift sequences are used. This function is equivalent to the call mbtowc((wchar_t*)0, s, n), except that conversion state of mbtowc is unaffected. Notes Each call to mblen updates the internal global conversion state (a static obje

mbrtoc32

Defined in header <uchar.h> size_t mbrtoc32( char32_t* pc32, const char* s, size_t n, mbstate_t* ps ); (since C11) Converts a narrow multibyte character to its 32-bit character representation (typically, UTF-32). If s is not a null pointer, inspects at most n bytes of the multibyte character string, beginning with the byte pointed to by s to determine the number of bytes necessary to complete the next multibyte character (including any shift sequences). If the function dete