// 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