Internationalization and localization tools


Character Manipulation Function

int fputs(const char* string, FILE* stream);

int fputws(const wchar_t* string, FILE* stream);

int _fputts(const TCHAR* string, FILE* stream);

Internationalization (I18n) Function Overview

The fputs function writes a string, without the null-terminator, to stream, returning a non-negative value if successful; else EOF.

fputws is the wide-character version of fputs; its parameter is a wide-character string, and its error return is WEOF.

_fputts is the Windows-only Generic version of the function; with the _MBCS or _UNICODE compiler flags determining its mapping to either fputs or fputws.

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