INtime SDK Help
ltos, _ltosw

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

Parameters

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

Remarks

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.

Return Values

A pointer to the converted string.

Generic Text Routines

tchar.h routine _UNICODE not defined _UNICODE defined
_ltot ltos _ltosw

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/wchar.h
intime/rt/include/tchar.h
stdlib.h
wchar.h
tchar.h
clib.lib
See Also