Character Manipulation Function
errno_t _ultoa_s(unsigned long value, char* str, size_t sizeOfstr, int radix);
errno_t _ultow_s(unsigned long value, wchar_t* str, size_t sizeOfstr, int radix);
errno_t _ultot_s(unsigned long value, TCHAR* str, size_t sizeOfstr, int radix);
Internationalization (I18n) Function Overview
The _ultoa_s function is a secure version of _ultoa , performing error checking and returning an error code in the event of an error. It converts the unsigned long value to a null-terminated character string and stores the result (up to 33 single-byte characters) in str . radix specifies the base of value and must be in the range 2 - 36. _ultow_s is the wide-character version of _ultoa_s , storing up to 33 wide characters. The sizeOfstr parameter is in bytes for _ultoa_s or words for _ultow_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
|