Everything
7.4.21 <wchar.h>

The following shows macros.

Type

Definition Name

Description

Macro

mbstate_t

Indicates the type for holding the necessary state of conversion between sequences of multibyte characters and wide characters.

wint_t

Indicates the type for holding extended characters.

Constant

(macro)

WEOF

Indicates the end-of-file.

Function

fwprintf

Converts the output format and outputs data to a stream.

vfwprintf

Equivalent to fwprintf with the variable argument list replaced by va_list.

swprintf

Converts the output format and writes data to an array of wide characters.

vswprintf

Equivalent to swprintf with the variable argument list replaced by va_list.

wprintf

Equivalent to fwprintf with stdout added as an argument before the specified arguments.

vwprintf

Equivalent to wprintf with the variable argument list replaced by va_list.

fwscanf

Inputs and converts data from the stream under control of the wide string and assigns it to an object.

vfwscanf <-lang=c99>

Equivalent to fwscanf with the variable argument list replaced by va_list.

swscanf

Converts data under control of the wide string and assigns it to an object.

vswscanf <-lang=c99>

Equivalent to swscanf with the variable argument list replaced by va_list.

wscanf

Equivalent to fwscanf with stdin added as an argument before the specified arguments.

vwscanf <-lang=c99>

Equivalent to wscanf with the variable argument list replaced by va_list.

fgetwc

Inputs a wide character as the wchar_t type and converts it to the wint_t type.

fgetws

Stores a sequence of wide characters in an array.

fputwc

Writes a wide character.

fputws

Writes a wide string.

fwide

Specifies the input/output unit.

getwc

Equivalent to fgetwc.

getwchar

Equivalent to getwc with stdin specified as an argument.

putwc

Equivalent to fputwc.

putwchar

Equivalent to putwc with stdout specified as the second argument.

ungetwc

Returns a wide character to a stream.

wcstod / wcstof / wcstold

These convert the initial part of a wide string to double, float, or long double representation.

wcstol / wcstoll / wcstoul / wcstoull

(wcstoll <-lang=c99>)

(wcstoull <-lang=c99>)

These convert the initial part of a wide string to long int, long long int, unsigned long int, or unsigned long long int representation.

Function

wcscpy

Copies a wide string.

wcsncpy

Copies n or fewer wide characters.

wmemcpy

Copies n wide characters.

wmemmove

Copies n wide characters.

wcscat

Copies a wide string and appends it to the end of another wide string.

wcsncat

Copies a wide string with n or fewer wide characters and appends it to the end of another wide character string.

wcscmp

Compares two wide strings.

wcsncmp

Compares two arrays with n or fewer wide characters.

wmemcmp

Compares n wide characters.

wcschr

Searches for a specified wide string in another wide string.

wcscspn

Checks if a wide string contains another specified wide string.

wcspbrk

Searches for the first occurrence of a specified wide string in another wide string.

wcsrchr

Searches for the last occurrence of a specified wide character in a wide string.

wcsspn

Calculates the length of the maximum initial segment of a wide string, which consists of specified wide characters.

wcsstr

Searches for the first occurrence of a specified sequence of wide characters in a wide string.

wcstok

Divides a wide string into a sequence of tokens delimited by a specified wide character.

wmemchr

Searches for the first occurrence of a specified wide character within the first n wide characters in an object.

wcslen

Calculates the length of a wide string.

wmemset

Copies n wide characters.

mbsinit

Checks if a specified object indicates the initial conversion state.

mbrlen

Calculates the number of bytes in a multibyte character.