Moved restore file logic into its own file

This commit is contained in:
rexy712
2018-12-04 13:13:51 -08:00
parent 82369b4d67
commit abb03dcd40
9 changed files with 293 additions and 164 deletions

View File

@@ -30,11 +30,26 @@
#define RETVAL_INTERNAL_ERROR 7
#define RETVAL_SUCCESS EXIT_SUCCESS
#define IO_ERROR_DIR "directory"
#define IO_ERROR_FILE "file"
#define IO_ERROR_OPEN "open"
#define IO_ERROR_READ "read"
#define IO_ERROR_WRITE "write to"
void io_error(const char* error, const char* type, const char* name);
void io_error_2(const char* error, const char* type, const char* name, const char* name2);
void io_error_3(const char* error, const char* type, const char* name, const char* name2, const char* name3);
extern int return_value;
struct string_array{
char** list;
int size;
};
void mem_error(void);
_Noreturn void version(void);
_Noreturn void usage(int exit_val);
#endif