itoa.h
itoa( int n, char* s )
function, which converts an integer value to a null-terminated string.
The least significant digit of an integer n
is transformed to a character by using the formula:
n%10 + '0'The function
reverse( char* s )
, used by the itoa( )
, reverses the string s
, for example, abcdef
is reversed to fedcba
.
~wenchen/public_html/cgi-bin/351/week7/itoa.h | ||||||
|