INtime SDK Help
ltoa, _ltow

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);

Parameters

value
Number to convert.
string
String result, up to 34 bytes.
radix
Base of value; must be in the range 2-36.

Remarks

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.

Return Values

A pointer to the converted string.

Generic Text Routines

tchar.h routine _UNICODE not defined _UNICODE defined
_ltot ltoa _ltow

Requirements

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
See Also