Se non erro, devi fare:

codice:
	int nChars = 0;
	int iVal = 18954;
	char pStr[21];

	nChars = IntToStr(iVal,  &pStr);