Internationalization and localization tools


Character Manipulation Function

errno_t _ui64toa_s(unsigned _int64 value, char* buffer, size_t sizeInCharacters, int radix);

errno_t _ui64tow_s(unsigned _int64 value, wchar_t* buffer, size_t sizeInCharacters, int radix);

errno_t _ui64tot_s(unsigned _int64 value, TCHAR* buffer, size_t sizeInCharacters, int radix);

Internationalization (I18n) Function Overview

The _ui64toa_s function is a secure version of _ui64toa, performing error checking and returning an error code in the event of an error. It converts the digits in value to a null-terminated character string and stores the result (up to 65 single-byte characters) in buffer. radix specifies the base of value and must be in the range 2 - 36.

_ui64tow_s is the wide-character version of _ui64toa_s, storing up to 65 wide characters. The sizeInCharacters parameter is in single-byte characters for _ui64toa_s or wide characters for _ui64tow_s.

_ui64tot_s is the Windows-only Generic version of the function; with the _MBCS or _UNICODE compiler flags determining its mapping to either _ui64toa_s or _ui64tow_s.

I18n Issues

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

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