Internationalization and localization tools


Character Manipulation Function

int putc(int c, FILE *stream);

wint_t putwc(wchar_t c, FILE *stream);

_TINT _puttc(_TINT c, FILE *stream);

Internationalization (I18n) Function Overview

The putc function writes a character to stream, returning the character if successful, or EOF to indicate an error.

putwc is the wide-character version of putc; its argument and return are wide characters. In the event of an error WEOF is returned.

_puttc is the Windows-only Generic version of the function; with the _MBCS or _UNICODE compiler flags determining its mapping to either putc or putwc.

I18n Issues

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

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