commonly used file methods
Functions | |
SCIP_Bool | SCIPfileExists (const char *filename) |
void | SCIPsplitFilename (char *filename, char **path, char **name, char **extension, char **compression) |
SCIP_Bool SCIPfileExists | ( | const char * | filename | ) |
returns, whether the given file exists
filename | file name |
Definition at line 11110 of file misc.c.
References FALSE, NULL, and TRUE.
Referenced by fromAmpl(), main(), readParams(), readParams(), readParams(), SCIP_DECL_CONCSOLVERCREATEINST(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTINIT(), solveClassification(), and solveMinIISC().
void SCIPsplitFilename | ( | char * | filename, |
char ** | path, | ||
char ** | name, | ||
char ** | extension, | ||
char ** | compression ) |
splits filename into path, name, and extension
filename | filename to split; is destroyed (but not freed) during process |
path | pointer to store path, or NULL if not needed |
name | pointer to store name, or NULL if not needed |
extension | pointer to store extension, or NULL if not needed |
compression | pointer to store compression extension, or NULL if not needed |
Definition at line 11126 of file misc.c.
References assert(), MAX, and NULL.
Referenced by readFile(), SCIP_DECL_READERREAD(), SCIPlpiReadLP(), SCIPlpiWriteLP(), SCIPreadProb(), separateGLS(), and writeProblem().