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/test-find-peaks.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/test-find-peaks.c') diff --git a/src/test-find-peaks.c b/src/test-find-peaks.c index 0af3fa0..361b5fc 100644 --- a/src/test-find-peaks.c +++ b/src/test-find-peaks.c @@ -10,6 +10,7 @@ #include /* for errno */ #include /* for strerror() */ #include "vector.h" +#include "util.h" #define EV_RECORD 0x45562020 #define MCTK_RECORD 0x4d43544b -- cgit