diff options
Diffstat (limited to 'fitsy/xfile.h')
-rw-r--r-- | fitsy/xfile.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/fitsy/xfile.h b/fitsy/xfile.h new file mode 100644 index 0000000..6d8e60c --- /dev/null +++ b/fitsy/xfile.h @@ -0,0 +1,20 @@ +/* default xfile.h + */ + +#ifndef XFILE_H +#define XFILE_H + +#include <stdio.h> + +typedef FILE *File; +#define ftOpen(n, m) fopen(n, m) +#define ftWrite(f, b, s, n) fwrite(b, s, n, f) +#define ftRead(f, b, s, n) fread(b, s, n, f) +#define ftGets(f, b, n) fgets(b, n, f) +#define ftFlush(f) fflush(f) +#define ftSeek(f, o, n) (fseek(f, o, n), ftell(f)) +#define ftTell(f) ftell(f) +#define ftOpenFd(fd, mode) fdopen(fd, mode) +#define ftClose(fd) fclose(fd) + +#endif |