Internationalization and localization tools


Character Manipulation Function

int _putch(int c);

wint_t _putwch(wchar_t c);

_TINT _puttch(_TINT c);

Internationalization (I18n) Function Overview

The _putch function writes a character to the console, returning c if successful and EOF in the event of an error.

_putwch is the wide-character version of _putch; it outputs a wide-character to the console, and it returns the wide-character wint_t if successful and WEOF otherwise.

_puttch is the Generic version which maps to _putch for an MBCS build and to _putwch for a UTF-16 Unicode build.

I18n Issues

Use the appropriate version of the function as required for internationalization support.

_putwch uses the current console locale setting when writing the UTF-16 Unicode character.

See Character I/O for a discussion on non-ASCII character input/output in an internationalized application.

Recommended Replacements*

*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.

Character Manipulation Functions

 

Lingoport internationalization and localization services and software