5 // Created by Richard Murphy on 1/22/16.
9 #ifndef secToolFileIO_h
10 #define secToolFileIO_h
16 #include <sys/utsname.h>
18 #include <CoreFoundation/CoreFoundation.h>
20 #define printmsg(format, ...) _printcfmsg(outFile, NULL, format, __VA_ARGS__)
21 #define printmsgWithFormatOptions(formatOptions, format, ...) _printcfmsg(outFile, formatOptions, format, __VA_ARGS__)
22 #define printerr(format, ...) _printcfmsg(errFile, NULL, format, __VA_ARGS__)
27 void _printcfmsg(FILE *ff
, CFDictionaryRef formatOptions
, CFStringRef format
, ...);
29 int setOutputTo(char *dir
, char *filename
);
31 void closeOutput(void);
33 int copyFileToOutputDir(char *dir
, char *toCopy
);
35 #endif /* secToolFileIO_h */