diff options
| author | akiyamn | 2020-09-10 18:13:12 +1000 |
|---|---|---|
| committer | akiyamn | 2020-09-10 18:13:12 +1000 |
| commit | 03e396142909f633ddc201e7c948bfc71319a0d2 (patch) | |
| tree | 816ff170bb70044908fd69e99296cea2922b213b /fileutil.h | |
| parent | cc006cf8239efd4f30925a1cefb0e408db3ffe0d (diff) | |
| download | fit2100_ass1-03e396142909f633ddc201e7c948bfc71319a0d2.tar.gz fit2100_ass1-03e396142909f633ddc201e7c948bfc71319a0d2.zip | |
Split into two files1.0.0-rc1
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); |
