INtime SDK Help
ltoh, _ltohw

Converts a long integer to a null-terminated hexadecimal string and stores it.

#include <stdlib.h>

char *ltoh(unsigned long value, char *string);

#include <wchar.h>

wchar_t *_ltohw(unsigned long value, wchar_t *string);

Parameters

value
Integer to convert.
string
String result, up to 34 bytes.

Remarks

This function does not place leading 0 characters in the result.

This function produces hexadecimal characters in lower case (a-f). For portability, use the sprintf %lx conversion specifier.

Return Values

A pointer to the converted string.

Generic Text Routines

tchar.h routine _UNICODE not defined _UNICODE defined
_ltoth ltoh _ltohw

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