Add new error code

main
Hammy 3 years ago
parent f23df82757
commit f6a9bdf4f5

@ -2,7 +2,7 @@
#include "stdarg.h"
#define DEFAULT_MAX_SIZE 10
#define ERRNO_SIZE 5
#define ERRNO_SIZE 6
List *List_createList(int maxSize, int currentSize);
@ -21,7 +21,8 @@ int errorCodes[ERRNO_SIZE] = {
ERRNO_002,
ERRNO_003,
ERRNO_004,
ERRNO_005
ERRNO_005,
ERRNO_006
};
List *List_new() {
@ -221,7 +222,7 @@ int List_extend(List *list_to_extend, List *input_list) {
int List_count(List *list, int element) {
if (!list) {
return 1;
return ERRNO_006;
}
int count = 0;

@ -12,6 +12,8 @@
#define ERRNO_004 2147483643
// [ERRNO 2147483642] -> Element Does Not Exist Within List
#define ERRNO_005 2147483642
// [ERRNO 2147483641] -> Null List
#define ERRNO_006 2147483641
typedef struct list List;

Loading…
Cancel
Save