Moved restore file logic into its own file
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user