#include #include #include int hblanks = 0; // ??? FILE * profile_fp; void HblankHandler() { hblanks++; } int Sys_FileOpenWrite (char *path) { /* static int init = true; if( init ){ for( i=0;i<10;i++ ) fp[i] = NULL; init = false; } */ profile_fp = fopen( path, "w" ); if( profile_fp == NULL ){ return -1; }else{ return 0; } } int Sys_FileWrite (int handle, void *data, int count) { int ret = fwrite( data , 1, count, profile_fp ); return ret; } void Sys_FileClose (int handle) { fclose(profile_fp); }