From a96111c8026d47147708796091ec7bef216aefd8 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Thu, 7 Mar 2019 14:43:51 -0600 Subject: update code to allow you to run the fit outside of the src directory To enable the fitter to run outside of the src directory, I created a new function open_file() which works exactly like fopen() except that it searches for the file in both the current working directory and the path specified by an environment variable. --- src/util.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/util.h (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h new file mode 100644 index 0000000..ef77df8 --- /dev/null +++ b/src/util.h @@ -0,0 +1,9 @@ +#ifndef UTIL_H +#define UTIL_H + +#include + +FILE *open_file(const char *filename, const char *mode); +char *find_file(const char *filename); + +#endif -- cgit