Converts a long integer to a null-terminated string of characters and stores it; negative base values are acceptable.
#include <stdlib.h> char *ltos (long value, char *string, int radix);
#include <wchar.h>
wchar_t *_ltosw(long value, wchar_t *string, int radix);
value
string
radix
The absolute value of radix is passed to this function as the number base.
Digits in the converted string representing values 10 through 35 are the characters a through z.
A pointer to the converted string.
tchar.h routine |
_UNICODE not defined |
_UNICODE defined |
---|---|---|
_ltot | ltos | _ltosw |
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 |