Internationalization and localization tools


Character Manipulation Function

char *fgets_unlocked(char *s, int count, FILE *stream);

wchar_t *fgetws_unlocked(wchar_t *ws, int count, FILE *stream);

Internationalization (I18n) Function Overview

The fgets_unlocked function is equivalent to the fgets function except that it does not implicitly lock the stream.

The fgetws_unlocked function is equivalent to the fgetws function except that it does not implicitly lock the stream.

I18n Issues

Use the appropriate version of the function as required for internationalization support ensuring that the argument count is correct for the chosen platform. See Locale-Sensitive Length Functions for a discussion on single-byte, multibyte, and wide character sizes.

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