void savegame(void)
{
-char savefile[300];
+ char savefile[300];
+ time_t current_time = time(NULL);
+ struct tm* time_struct;
+ FILE* fi;
-time_t current_time = time(NULL);
-struct tm* time_struct;
-time_struct = localtime(¤t_time);
-sprintf(savefile,"%s/%d-%d-%d-%d.save",st_save_dir,time_struct->tm_year+1900,time_struct->tm_mon,time_struct->tm_mday,time_struct->tm_hour);
-printf("%s",savefile);
+ time_struct = localtime(¤t_time);
+ sprintf(savefile,"%s/%d-%d-%d-%d.save",st_save_dir,time_struct->tm_year+1900,time_struct->tm_mon,time_struct->tm_mday,time_struct->tm_hour);
+ printf("%s",savefile);
-FILE* fi;
fi = fopen(savefile, "wb");
fclose(fi);
}
-}
\ No newline at end of file
+}