Converts an integer of the specified base to a null-terminated string of characters and stores it.
#include <stdlib.h> char *itoa(int value, char *string, int radix);
#include <wchar.h>
wchar_t *_itow(int value, wchar_t *string, int radix);
wchar_t *_witoa(int value, wchar_t *string, int radix);
value
string
radix
value
; must be in the range 2-36. If radix
equals 10 and value is negative, the first character of the stored string is the minus sign (-).
If radix
is greater than 10, digits in the converted string representing values 10 through 35 are the characters a through z.
_itow is the wide-character version of itoa; _witoa is an alias for _itow.
A pointer to the converted string.
tchar.h routine |
_UNICODE not defined |
_UNICODE defined |
---|---|---|
_itot | itoa | _itow |
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 INtime 6.0 (for wide-character and generic text versions) |
intime/rt/include/stdlib.h intime/rt/include/wchar.h intime/rt/include/tchar.h |
stdlib.h wchar.h tchar.h |
clib.lib |