#define MAX_BUFFER_SIZE 4096
-File *openFile(char *filename, char *mode)
+File *openFile(const char *filename, const char *mode)
{
File *file = checked_calloc(sizeof(File));
return fgets(line, size, file->file);
}
-int copyFile(char *filename_from, char *filename_to)
+int copyFile(const char *filename_from, const char *filename_to)
{
File *file_from, *file_to;
return 0;
}
-boolean touchFile(char *filename)
+boolean touchFile(const char *filename)
{
FILE *file;
ListNode *getNodeFromKey(ListNode *, char *);
int getNumNodes(ListNode *);
-File *openFile(char *, char *);
+File *openFile(const char *, const char *);
int closeFile(File *);
int checkEndOfFile(File *);
size_t readFile(File *, void *, size_t, size_t);
int seekFile(File *, long, int);
int getByteFromFile(File *);
char *getStringFromFile(File *, char *, int);
-int copyFile(char *, char *);
-boolean touchFile(char *);
+int copyFile(const char *, const char *);
+boolean touchFile(const char *);
Directory *openDirectory(char *);
int closeDirectory(Directory *);