Internationalization and localization tools


Locale-Sensitive C/C++ String Operation Function

float strtof(const char *string, char **tailptr);

float wcstof(const wchar_t *string, wchar_t **tailptr);

Internationalization (I18n) Function Overview

The strtof function is analogous to strtod but returns a float value. It reports errors in the same way as strtod. strtof can be substantially faster than strtod, but has less precision.

The wcstof function is equivalent in nearly all aspects to the strtof function but it handles wide character strings.

I18n Issues

Use the appropriate version of the function as required for internationalization support, noting the following:

Ensure that the current locale is set properly.

Recommended Replacements*

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

Locale-Sensitive C/C++ String Operation Functions

 

Lingoport internationalization and localization services and software