fuzzotron.c
int directory_exists(char * dir){
    DIR * d = opendir(dir);
    if(d != NULL){
        closedir(d);
        return 0;
    }
    else{
        return -1;
    }
}
/*
*  Check if a directory exists, returns 0 on success or < 0 on failure.
*/
Check if a directory exists, returns 0 on success or < 0 on failure.
Check if a directory exists returns 0 on success or < 0 on failure .
int directory_exists(char * dir){
    DIR * d = opendir(dir);
    if(d != NULL){
        closedir(d);
        return 0;
    }
    else{
        return -1;
    }
}
int directory_exists ( char * dir ) { DIR * d = opendir ( dir ) ; if ( d != NULL ) { closedir ( d ) ; return 0 ; } else { return -1 ; } }
Check if a directory exists, returns 0 on success or < 0 on failure.
Check if a directory exists returns 0 on success or < 0 on failure .