>>685

#ifdef _DEBUG_
d_file = fopen("debug.txt", "w+");

// ピクセルの初期化
for(h=0; h<MAX_HEIGHT; h++){
for(i=0; i<MAX_WIDTH; i++){
if(pix[i][h] == POINT_EXIST){
fprintf(d_file, "1");
}
else{
fprintf(d_file, "0");
}
}
fprintf(d_file, "\r\n");
}

fclose(d_file);
#endif

return(ret);
}

おわり。いかがでしょうか?