diff options
author | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2018-08-08 15:16:14 -0400 |
---|---|---|
committer | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2018-08-08 15:16:14 -0400 |
commit | 0183098f9cb37a5389b8ff19dee98a4293752ce6 (patch) | |
tree | 22b8fb52d009192427d48f8c8de1e5831b30521d /readall.h | |
download | random-seed-0183098f9cb37a5389b8ff19dee98a4293752ce6.tar.xz random-seed-0183098f9cb37a5389b8ff19dee98a4293752ce6.zip |
Initial commit
Diffstat (limited to 'readall.h')
-rw-r--r-- | readall.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/readall.h b/readall.h new file mode 100644 index 0000000..94c2bfe --- /dev/null +++ b/readall.h @@ -0,0 +1,14 @@ +#ifndef READALL_H +#define READALL_H + +#include <stdio.h> + +#define READALL_OK 0 /* Success */ +#define READALL_INVALID -1 /* Invalid parameters */ +#define READALL_ERROR -2 /* Stream error */ +#define READALL_TOOMUCH -3 /* Too much input */ +#define READALL_NOMEM -4 /* Out of memory */ + +int readall(FILE *in, char **dataptr, size_t *sizeptr); + +#endif |