wmemcmp

Defined in header <wchar.h> int wmemcmp( const wchar_t *lhs, const wchar_t *rhs, size_t count ); (since C95) Compares the first count wide characters of the wide character (or compatible integer type) arrays 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 wide characters that differ in the arrays being compared. If count is zero, the function does nothing. Par

wmemchr

Defined in header <wchar.h> wchar_t *wmemchr( const wchar_t *ptr, wchar_t ch, size_t count ); (since C95) Locates the first occurrence of wide character ch in the initial count wide characters of the wide character array or integer array of compatible type, pointed to by ptr. If count is zero, the function returns a null pointer. Parameters ptr - pointer to the wide character array to be examined ch - wide character to search for count - number of wide c

while loop

Executes a statement repeatedly, until the value of expression becomes equal to zero. The test takes place before each iteration. Syntax while ( expression ) statement expression - any expression of scalar type. This expression is evaluated before each iteration, and if it compares equal to zero, the loop is exited. statement - any statement, typically a compound statement, which serves as the body of the loop Explanation A while statement causes the statement (also

while

Usage while loop: as the declaration of the loop do-while loop: as the declaration of the terminating condition of the loop

wctype

Defined in header <wctype.h> wctype_t wctype( const char* str ); (since C95) Constructs a value of type wctype_t that describes a LC_CTYPE category of wide character classification. It may be one of the standard classification categories, or a locale-specific category, such as "jkanji". Parameters str - C string holding the name of the desired category The following values of str are supported in all C locales: value of str effect "alnum" identifies the ca

wctrans

Defined in header <wctype.h> wctrans_t wctrans( const char* str ); (since C95) Constructs a value of type wctrans_t that describes a LC_CTYPE category of wide character mapping. It may be one of the standard mappings, or a locale-specific mapping, such as "tojhira" or "tojkana". Parameters str - C string holding the name of the desired mapping. The following values of str are supported in all C locales: Value of str Effect "toupper" identifies the mapping use

wctomb

Defined in header <stdlib.h> int wctomb( char *s, wchar_t wc ); (1) errno_t wctomb_s(int *restrict status, char *restrict s, rsize_t ssz, wchar_t wc); (2) (since C11) 1) Converts a wide character wc to multibyte encoding and stores it (including any shift sequences) in the char array whose first element is pointed to by s. No more than MB_CUR_MAX characters are stored. If wc is the null character, the null byte is written to s, preceded by any shift sequences neces

wctob

Defined in header <wchar.h> int wctob( wint_t c ); (since C95) Narrows a wide character c if its multibyte character equivalent in the initial shift state is a single byte. This is typically possible for the characters from the ASCII character set, since most multibyte encodings (such as UTF-8) use single bytes to encode those characters. Parameters c - wide character to narrow Return value EOF if c does not represent a multibyte character with length 1 in ini

wcsxfrm

Defined in header <wchar.h> size_t wcsxfrm( const wchar_t* dest, const wchar_t* src, size_t count ); (until C99) (since C95) size_t wcsxfrm( const wchar_t* restrict dest, const wchar_t* restrict src, size_t count ); (since C99) Transforms the null-terminated wide string pointed to by src into the implementation-defined form such that comparing two transformed strings with wcscmp gives the same result as comparing the original strings with wcscoll, in the current C loc

wcstoul

Defined in header <wchar.h> unsigned long wcstoul( const wchar_t* str, wchar_t** str_end, int base ); (since C95) unsigned long long wcstoull( const wchar_t* str, wchar_t** str_end, int base ); (since C99) Interprets an unsigned integer value in a wide string pointed to by str. Discards any whitespace characters (as identified by calling isspace()) until the first non-whitespace character is found, then takes as many characters as possible to form a valid base-n