From 03e396142909f633ddc201e7c948bfc71319a0d2 Mon Sep 17 00:00:00 2001 From: akiyamn Date: Thu, 10 Sep 2020 18:13:12 +1000 Subject: Split into two files --- iohelper.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 iohelper.h (limited to 'iohelper.h') 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 -- cgit v1.2.3