>>780
sprintfを使おう

char hoge[128];
int num = 123;
sprintf(hoge,"%d",num);
みたいに