summaryrefslogtreecommitdiffstats
path: root/funtools/util/file.h
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2016-10-27 17:38:41 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2016-10-27 17:38:41 (GMT)
commit5b44fb0d6530c4ff66a446afb69933aa8ffd014f (patch)
treee059f66d1f612e21fe9d83f9620c8715530353ec /funtools/util/file.h
parentda2e3d212171bbe64c1af39114fd067308656990 (diff)
parent23c7930d27fe11c4655e1291a07a821dbbaba78d (diff)
downloadblt-5b44fb0d6530c4ff66a446afb69933aa8ffd014f.zip
blt-5b44fb0d6530c4ff66a446afb69933aa8ffd014f.tar.gz
blt-5b44fb0d6530c4ff66a446afb69933aa8ffd014f.tar.bz2
Merge commit '23c7930d27fe11c4655e1291a07a821dbbaba78d' as 'funtools'
Diffstat (limited to 'funtools/util/file.h')
-rw-r--r--funtools/util/file.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/funtools/util/file.h b/funtools/util/file.h
new file mode 100644
index 0000000..325b641
--- /dev/null
+++ b/funtools/util/file.h
@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) 1999-2003 Smithsonian Astrophysical Observatory
+ */
+
+/*
+ *
+ * file.h -- declarations for file parsing
+ *
+ */
+
+#ifndef __file_h
+#define __file_h
+
+#if HAVE_CONFIG_H
+#include "conf.h"
+#endif
+
+#include <stdio.h>
+#include <ctype.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+#ifdef HAVE_MALLOC_H
+#include <malloc.h>
+#endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+#include <sys/types.h>
+#include <sys/stat.h>
+#include "prsetup.h"
+#include "macro.h"
+#include "xalloc.h"
+
+_PRbeg
+int FileExists _PRx((char *filename));
+int IsFile _PRx((char *s, char *filename, int len));
+int IsFits _PRx((char *filename));
+char *FileNameFromPath _PRx((char *s));
+char *FileContents _PRx((char *path, int isize, int *osize));
+int FileSize _PRx((char *path));
+int FileCopy _PRx((char *iname, char *oname));
+char *FileRoot _PRx((char *fname));
+char *FileExtension _PRx((char *fname));
+int GenerateArraySpecification _PRx((char *ispec, char *ospec, int olen));
+int GenerateArraySpec2 _PRx((char *iname, char *ispec, char *ospec, int olen));
+int GetNextFileName _PRx((char *filenames, int *ip, char *filename, int len));
+int ParseArraySpec _PRx((char *tbuf, int *xdim, int *ydim, int *bitpix,
+ int *skip, int *bigendian));
+
+_PRend
+
+#endif