1 2 3 4 5 6 7 8 9 10 11 12 13
#include "stdlib.h" #include "string.h" int main( void ) { char *res; char buf[11]; res = itoa( 568876, buf, 10 ); if( strcmp( res, buf ) ) return 1; return 0; }