Locale-Sensitive C/C++ String Operation Function
long strtol(const char *nptr, char **endptr, int base);
long wcstol(const wchar_t *nptr, wchar_t **endptr, int base);
long _tcstol(const TCHAR *nptr, TCHAR **endptr, int base);
Internationalization (I18n) Function Overview
The strtol function converts nptr to a long int ,
using the LC_NUMERIC category setting of the current locale and base as the base number
for the conversion. On return, endptr is set to point to the
character that stopped the scan, which may be the terminating NULL character.
wcstol is the wide character equivalent; its parameters are wide-character strings.
_tcstol is the Windows-only Generic version of the function; with the _MBCS or _UNICODE compiler flags determining its mapping to either strtol or wcstol .
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
|