INtime SDK Help
itoh, _itohw

Converts an integer into the equivalent null-terminated, hexadecimal string and stores it.

#include <stdlib.h>

char *itoh (int n, char *buffer);

#include <wchar.h>

wchar_t *_itohw(wint n, wchar_t *buffer);
wchar_t *_witoh(wint n, wchar_t *buffer);

Parameters

n
Integer to convert.
buffer
Pointer to a string. The buffer must be large enough to hold the largest integer on the target system.

Remarks

itoh converts all non-numeric hexadecimal characters to lower case. This function also does not place a leading 0 character in the buffer.

For portability, use the sprintf %x conversion specifier.

_itohw is the wide-character version of itoh. _witoh is an alias for _itohw.

Return Values

A pointer to the converted string.

Generic Text Routines

tchar.h routine _UNICODE not defined _UNICODE defined
_itoth itoh _itohw

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
whcar.h
tchar.h
clib.lib
   
See Also