Internationalization and localization tools


Character Manipulation Function

char* _ultoa(unsigned long value, char* string, int radix);

wchar_t* _ultow(unsigned long value, wchar_t* string, int radix);

TCHAR* _ultot(unsigned long value, TCHAR* string, int radix);

Internationalization (I18n) Function Overview

The _ultoa function converts the unsigned long value to a null-terminated character string and stores the result (up to 33 single-byte characters) in string. No overflow checking is performed, and the return is a pointer to string. radix specifies the base of value and must be in the range 2 - 36.

_ultow is the wide-character version of _ultoa, storing up to 33 wide characters.

_ultot is the Windows-only Generic version of the function; with the _MBCS or _UNICODE compiler flags determining its mapping to either _ultoa or _ultow.

I18n Issues

Use the appropriate version of the function as required for internationalization support.

Recommended Replacements*

Consider using the more secure versions of these functions, if they are available. These are shown as the first choices in the following table:

*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