Internationalization and localization tools


Locale-Sensitive C/C++ String Operation Function

long long int strtoll(const char *restrict string, char **restrict tailptr, int base);

long long int wcstoll(const wchar_t *restrict string, wchar_t **restrict tailptr, int base);

long long int atoll(const char *restrict string, char **restrict tailptr, int base);

long long int strtoq(const char *restrict string, char **restrict tailptr, int base);

long long int wcstoq(const wchar_t *restrict string, wchar_t **restrict tailptr, int base);

Internationalization (I18n) Function Overview

The strtoll ("string-to-long-long") function converts the initial part of string to a signed integer, which is returned as a value of type long long int.

The wcstoll function is equivalent to the strtoll function in nearly all aspects but handles wide character strings.

atoll is a deprecated alias for strtoll. Use strtoll instead.

The strtoq function is the BSD name for strtoll.

The wcstoq function is the BSD name for wcstoll.

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