Internationalization and localization tools


Wide to Single-Byte Character Conversion Function

int wctob(wint_t c);

Internationalization (I18n) Function Overview

The wctob function determines whether the wide character c can be encoded as a single byte, using the conversion rules of the LC_CTYPE category setting of the current locale. The function returns the single byte character if successful, else EOF in the event of an error or if c equals WEOF.

I18n Issues

Prior to calling wctob, ensure that the current locale is set correctly.

Recommended Replacements*

There are no variations of this conversion function.

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

Multibyte and Wide Character Conversion Functions

 

Lingoport internationalization and localization services and software