CharNumber Function (ROM Call 0x113)

string.h

unsigned char CharNumber (unsigned char num, unsigned char pos, unsigned char *string);

Writes an unsigned char in base 10 at given offset from the beginning of a string, and null-terminates the string.

CharNumber writes number num as a string, in base 10, at string[pos], and null-terminates string after the number has been printed.
It returns the offset of the terminating null character from the beginning of string.
Of course, CharNumber may be useful only if the number you want to write is in the range of values an unsigned char can represent.


Used by: de_initRes, de_loop, GetStatValue, gr_find_de_result, gr_initCondName, grFuncName, recall_data_var, store_data_var, partial_len