summaryrefslogtreecommitdiff
path: root/iohelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'iohelper.h')
-rw-r--r--iohelper.h14
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