13 lines
505 B
C
13 lines
505 B
C
#include <utils.h>
|
|
|
|
const char* error_messages[] = {
|
|
[ERR_ALLOC_FAIL] = "Calloc :- Failed to allocate",
|
|
[ERR_BUF_NULL] = "Buffer :- NULL",
|
|
[ERR_SIZE_ZERO] = "Size :- Size is or is less than 0 or invalid",
|
|
[ERR_VECTOR_NULL] = "Vector :- Given vector is null",
|
|
[ERR_MAX_PASSED] = "Max :- Vector Max value is overloaded",
|
|
[ERR_OUT_OF_BOUNDS] = "Bounds:- Value is out of bounds",
|
|
[ERR_NULL] = "Null:- Vector or buffer is null",
|
|
[ERR_DOUBLE_BUF] = "Buffer :- Both buffers are copies of each other",
|
|
};
|