00001 #include <stdio.h>
00002 #include <string.h>
00003 #include "benchmarkshelper.h"
00004
00005
00006
00007
00008 void dirOK(char *sDir)
00009 {
00010 char fileNameLoc[1024];
00011 FILE * f;
00012 createFullFileName(fileNameLoc, sDir, (char*)"toto");
00013 f = fopen(fileNameLoc,"w");
00014 if(f == NULL){
00015 ERROR("Problem writing in dir %s.\nMake sure you run 'python createfolders.py %s' before running the program.", sDir, sDir);
00016 }
00017 else
00018 {
00019 fclose(f);
00020 remove(fileNameLoc);
00021 }
00022 return;
00023 }