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

Member access operators

Member access operators allow access to the members of their operands. Operator Operator name Example Description [] array subscript a[b] access the bth element of array a * pointer dereference *a dereference the pointer a to access the object or function it refers to & address of &a create a pointer that refers to the object or function a . member access a.b access member b of struct or union a -> member access through pointer a->b a

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

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

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

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

mbrtoc16

Defined in header <uchar.h> size_t mbrtoc16( char16_t* pc16, const char* s, size_t n, mbstate_t* ps ); (since C11) Converts a narrow multibyte character to 16-bit character representation (typically, UTF-16). 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 determin