utils_general.c
/*
*   \brief Check file availability
* 
*   Checking if file exists. Returns 1 if file exists
*/
\brief Check file availability
Checking if file exists. Returns 1 if file exists
\ brief Check file availability Checking if file exists . Returns 1 if file exists
int file_exists (const char *path) {
	if( access( path, F_OK ) != -1 ) {
    	return 1;
	} else {
    	return 0;
	}
}
int file_exists ( const char * path ) { if ( access ( path , F_OK ) != -1 ) { return 1 ; } else { return 0 ; } }
\brief Check file availability
Checking if file exists.
\ brief Check file availability Checking if file exists .