Internationalizing and Localizing Applications in Oracle Solaris

Exit Print View

Updated: July 2014
 
 

Wide-Character Input and Output

The following functions are used for wide-character input and output. These functions perform implicit conversion between file code (multibyte data) and internal process code (wide-character data).

fgetwc(), getwc()

Get a wide-character code from a stream

getwchar()

Get a wide character from a standard input stream

fgetws()

Get a wide-character string from a stream

getws() (*)

Get a wide-character string from a standard input stream

fputwc(), putwc()

Put a wide-character code on a stream

putwchar()

Put a wide-character code on the standard output stream

fputws()

Put a wide-character string on a stream

putws() (*)

Put a wide-character string on the standard output stream

fwide()

Set the stream orientation to byte or wide-character

ungetwc()

Push wide-character code back into the input stream

The following functions are used for formatting wide-character input and output:

fwprintf(), wprintf(), swprintf(), wsprintf() (*)

Print formatted wide-character output

vfwprintf(), vwprintf(), vswprintf()

Wide-character formatted output of a stdarg argument list

fwscanf(), wscanf(), swscanf(), wsscanf() (*)

Convert formatted wide-character input

vfwscanf(), vwscanf(), vswscanf()

Convert formatted wide-character input using a stdarg argument list

The functions marked with (*) were added to Oracle Solaris before the UNIX 98 standard that introduced the Multibyte Support Extension (MSE). They require inclusion of the widec.h header instead of the default wchar.h.