diff options
| author | akiyamn | 2020-09-10 18:13:12 +1000 |
|---|---|---|
| committer | akiyamn | 2020-09-10 18:13:12 +1000 |
| commit | 03e396142909f633ddc201e7c948bfc71319a0d2 (patch) | |
| tree | 816ff170bb70044908fd69e99296cea2922b213b /iohelper.h | |
| parent | cc006cf8239efd4f30925a1cefb0e408db3ffe0d (diff) | |
| download | fit2100_ass1-1.0.0-rc1.tar.gz fit2100_ass1-1.0.0-rc1.zip | |
Split into two files1.0.0-rc1
Diffstat (limited to 'iohelper.h')
| -rw-r--r-- | iohelper.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/iohelper.h b/iohelper.h new file mode 100644 index 0000000..d4c2355 --- /dev/null +++ b/iohelper.h @@ -0,0 +1,14 @@ +// iohelper.h + +#ifndef _IOHELPER_H +#define _IOHELPER_H + +#define FILE_BUF_SIZE 1024 +#define NEW_FILE_PERMS 0664 // -rw-r--r-- when files are created + +void to_stdout(char *string); +void to_stderr(char *string); +int open_file(char *path, int flags); +void file_into_file(int source_fd, int dest_fd); + +#endif
\ No newline at end of file |
