Export (0) Print
Expand All
Expand Minimize
1 out of 1 rated this helpful - Rate this topic

_ultoa, _ultow

Convert an unsigned long integer to a string.

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

Parameters

value
Number to be converted.
string
String result.
radix
Base of value.

Return Value

Each of these functions returns a pointer to string. There is no error return.

Remarks

The _ultoa function converts value to a null-terminated character string and stores the result (up to 33 bytes) in string. No overflow checking is performed. radix specifies the base of value; radix must be in the range 2 – 36. _ultow is a wide-character version of _ultoa.

Generic-Text Routine Mappings

TCHAR.H routine _UNICODE & _MBCS not defined _MBCS defined _UNICODE defined
_ultot _ultoa _ultoa _ultow

Requirements

Routine Required header Compatibility
_ultoa <stdlib.h> Win 98, Win Me, Win NT, Win 2000, Win XP
_ultow <stdlib.h> or <wchar.h> Win 98, Win Me, Win NT, Win 2000, Win XP

For additional compatibility information, see Compatibility in the Introduction.

Libraries

All versions of the C run-time libraries.

Example

See the example for _itoa.

See Also

Data Conversion Routines | _itoa | _ltoa | Run-Time Routines and .NET Framework Equivalents

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.