Converts a long integer of the specified base to a null-terminated string of characters and stores it.
#include <stdlib.h> char *ltoa (long value, char *string, int radix);
#include <wchar.h>
wchar_t *_ltow(long value, wchar_t *string, int radix);
wchar_t *_wltoa(long value, wchar_t *string, int radix);
value
string
radix
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.
_ltow is the wide-characeter version of ltoa. _wltoa is an alias for _ltow.
A pointer to the converted string.
tchar.h routine |
_UNICODE not defined |
_UNICODE defined |
---|---|---|
_ltot | ltoa | _ltow |
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/whcar.h intime/rt/include/tchar.h |
stdlib.h wchar.h tchar.h |
clib.lib |