char hoge[] = {'1','0','0','0','\0'};
を
int foo; // に代入して・・・
if (foo == 1000){printf("変換出来ました!\n");}
どうすれば良いんでしょう (死