Refactored how operations are carried out

This commit is contained in:
Rexy712
2018-12-10 11:19:15 -08:00
parent 04dcd0684a
commit 1d5a5d9d69
5 changed files with 113 additions and 104 deletions

View File

@@ -40,11 +40,6 @@
#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{
@@ -53,7 +48,11 @@ struct string_array{
};
void free_string_array(struct string_array* s);
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);
void mem_error(void);
_Noreturn void version(void);
_Noreturn void usage(int exit_val);