How do you convert a integer to a string?
How do you convert a integer to a string?
ile look into it
Thanks whiteflags. Works great
And since we're all bored...Quzah.Code:void inttostr( int i, char *s ) { if( s ) { int d = i; if( i < 0 ) { *s++ = '-'; i = 0 - i; } for( d = i; d; s++, d/=10 ); *s-- = '\0'; for( d = i; d; d /= 10 ) *s-- = '0' + (d % 10); } }
Hope is the first step on the road to disappointment.