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 --- fileutil.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'fileutil.h') diff --git a/fileutil.h b/fileutil.h index fbfb27c..64e7aa3 100644 --- a/fileutil.h +++ b/fileutil.h @@ -1,9 +1,9 @@ +// fileutil.h + #ifndef _FILEUTIL_H #define _FILEUTIL_H -#define FILE_BUF_SIZE 1024 #define DEFAULT_READ_PATH "logfile.txt" // Default source path if one isn't specified -#define NEW_FILE_PERMS 0664 // -rw-r--r-- when files are created #define MIN_NUM_OF_ARGS 1 #define MAX_NUM_OF_ARGS 6 @@ -19,10 +19,6 @@ typedef struct arguments_t { int dir_index; // Index in the provided arguments (argv) of the directory path string } arguments_t; -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); void print_file(char *read_path); void copy_file(char *read_path, char *write_path, bool overwrite); char* get_filename(char *full_path); -- cgit v1.2.3