diff options
Diffstat (limited to 'fileutil.h')
| -rw-r--r-- | fileutil.h | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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); |
