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