• Main Page
  • Modules
  • Classes
  • Files
  • File List

D:/Projekt/ECF_trunk/examples/FunctionMin/dirOK.c

00001 #include <stdio.h>
00002 #include <string.h>
00003 #include "benchmarkshelper.h"
00004 
00005 /* Checks if sDir exists,
00006    Fatal ERROR if it fails
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 }

Generated on Tue Nov 4 2014 13:04:32 for ECF by  doxygen 1.7.1