diff options
author | Patrick Simianer <p@simianer.de> | 2014-06-14 16:46:27 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-06-14 16:46:27 +0200 |
commit | 26c490f404731d053a6205719b6246502c07b449 (patch) | |
tree | 3aa721098f1251dfbf2249ecd2736434c13b1d48 /ccc/filelib.h |
init
Diffstat (limited to 'ccc/filelib.h')
-rw-r--r-- | ccc/filelib.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ccc/filelib.h b/ccc/filelib.h new file mode 100644 index 0000000..587cddf --- /dev/null +++ b/ccc/filelib.h @@ -0,0 +1,25 @@ +#ifndef FILELIB_H +#define FILELIB_H + +#include <stdlib.h> +#include <stdio.h> +#include <stdbool.h> +#include <zlib.h> +#include <assert.h> +#include "util.h" + +#define GZIP_EXT ".gz" + + +typedef struct +{ + char* name; // relative + bool gz; +} hFile; + +hFile* makef(char* fname, const char* mode); +bool writeln(const char* s, hFile* f); + + +#endif + |