summaryrefslogtreecommitdiff
path: root/fileutil.h
diff options
context:
space:
mode:
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);