Internationalization and localization tools


Character Manipulation Function

int puts(const char *string);

int putws(const char *string);

int _putws(const char *string);

int _putts(const char *string);

Internationalization (I18n) Function Overview

The puts function writes string to stdout, and appends a new line character to the end of the stream. It returns a non-negative value if successful, and EOF in the event of an error.

Use putws for the wide character equivalent. _putws is the same as putws, supported on Windows platforms. These return a non-negative value if successful, and WEOF otherwise.

_putts is the Windows-only Generic version of the function; with the _MBCS or _UNICODE compiler flags determining its mapping to either _putws or puts.

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