Back

Itoa()




    USAGE

    void Itoa(Integer, String, Base) FUNCTION

    This is a generic integer to ASCII conversion routine. Given a number, a string buffer and a number base, it turns the number into a string and deposit that in the buffer. You can use any base from 2 (binary) up to 16 (hexadecimal). INPUTS

    Integer = Number to convert. String = Pointer to a character array into which the ASCII number will be placed. (The array you have to declare before. for example: char mystring[32];) RESULT

    Returns the string in the given stringpointer (in example "mystring") SEE ALSO Atoi