summaryrefslogtreecommitdiff
path: root/fileutil.h
diff options
context:
space:
mode:
authorakiyamn2020-09-10 18:13:12 +1000
committerakiyamn2020-09-10 18:13:12 +1000
commit03e396142909f633ddc201e7c948bfc71319a0d2 (patch)
tree816ff170bb70044908fd69e99296cea2922b213b /fileutil.h
parentcc006cf8239efd4f30925a1cefb0e408db3ffe0d (diff)
downloadfit2100_ass1-03e396142909f633ddc201e7c948bfc71319a0d2.tar.gz
fit2100_ass1-03e396142909f633ddc201e7c948bfc71319a0d2.zip
Split into two files1.0.0-rc1
Diffstat (limited to 'fileutil.h')
-rw-r--r--fileutil.h8
1 files changed, 2 insertions, 6 deletions
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);