functions
types
macro constants
header
<cwchar> (wchar.h)
Wide characters
This header file defines several functions to work with C wide strings.
Functions
Input/Output: (mostly wide versions of <cstdio> functions)
- fgetwc
- Get wide character from stream (function)
- fgetws
- Get wide string from stream (function)
- fputwc
- Write wide character to stream (function)
- fputws
- Write wide string to stream (function)
- fwide
- Stream orientation (function)
- fwprintf
- Write formatted data to stream (function)
- fwscanf
- Read formatted data from stream (function)
- getwc
- Get wide character from stream (function)
- getwchar
- Get wide character from stdin (function)
- putwc
- Write wide character to stream (function)
- putwchar
- Write wide character to stdout (function)
- swprintf
- Write formatted data to wide string (function)
- swscanf
- Read formatted data from string (function)
- ungetwc
- Unget wide character from stream (function)
- vfwprintf
- Write formatted data from variable argument list to stream (function)
- vfwscanf
- Read formatted data from stream into variable argument list (function)
- vswprintf
- Write formatted data from variable argument list to sized buffer (function)
- vswscanf
- Read formatted data from wide string into variable argument list (function)
- vwprintf
- Print formatted data from variable argument list to stdout (function)
- vwscanf
- Read formatted data into variable argument list (function)
- wprintf
- Print formatted data to stdout (function)
- wscanf
- Read formatted data from stdin (function)
General utilities: (wide versions of <cstdlib> functions)
- wcstod
- Convert wide string to double (function)
- wcstof
- Convert wide string to float (function)
- wcstol
- Convert wide string to long integer (function)
- wcstold
- Convert wide string to long double (function)
- wcstoll
- Convert wide string to long long integer (function)
- wcstoul
- Convert wide string to unsigned long integer (function)
- wcstoull
- Convert wide string to unsigned long long integer (function)
Character/string conversion: (mostly extended versions of <cstdlib> functions)
- btowc
- Convert single byte character to wide character (function)
- mbrlen
- Get length of multibyte character (function)
- mbrtowc
- Convert multibyte sequence to wide character (function)
- mbsinit
- Check if initial conversion state (function)
- mbsrtowcs
- Convert multibyte string to wide-character string (function)
- wcrtomb
- Convert wide character to multibyte sequence (function)
- wctob
- Convert wide character to single byte (function)
- wcsrtombs
- Convert wide-character string to multibyte string (function)
Strings: (wide versions of <cstring> functions)
- wcscat
- Concatenate wide strings (function)
- wcschr
- Locate first occurrence of character in wide string (function)
- wcscmp
- Compare two strings (function)
- wcscoll
- Compare two wide strings using locale (function)
- wcscpy
- Copy wide string (function)
- wcscspn
- Get span until character in wide string (function)
- wcslen
- Get wide string length (function)
- wcsncat
- Append characters from wide string (function)
- wcsncmp
- Compare characters of two wide strings (function)
- wcsncpy
- Copy characters from wide string (function)
- wcspbrk
- Locate characters in wide string (function)
- wcsrchr
- Locate last occurrence of character in wide string (function)
- wcsspn
- Get span of character set in wide string (function)
- wcsstr
- Locate substring of wide string (function)
- wcstok
- Split wide string into tokens (function)
- wcsxfrm
- Transform wide string using locale (function)
- wmemchr
- Locate character in block of wide characters (function)
- wmemcmp
- Compare two blocks of wide characters (function)
- wmemcpy
- Copy block of wide characters (function)
- wmemmove
- Move block of wide characters (function)
- wmemset
- Fill array of wide characters (function)
Time: (a wide version of a <ctime> function)
- wcsftime
- Format time as wide string (function)
Macro constants
- NULL
- Null pointer (macro)
- WCHAR_MAX
- Maximum value of wchar_t (constant)
- WCHAR_MIN
- Minimum value of wchar_t (constant)
- WEOF
- Wide end-of-file (constant)