a wrapper around strings

This commit is contained in:
Odweta
2024-02-04 18:51:42 +01:00
parent 53a282a3ea
commit 8832a2a4aa
9 changed files with 210 additions and 103 deletions
+13 -1
View File
@@ -1,6 +1,17 @@
#ifndef UTIL_H
#define UTIL_H
#include <stdbool.h>
typedef enum {
LESS,
LESS_EQUAL,
EQUAL,
NOT_EQUAL,
GREATER,
GREATER_EQUAL
} compare_e;
typedef long unsigned int size_t;
typedef enum {
@@ -8,7 +19,8 @@ typedef enum {
FLOAT = 1,
CHAR = 2,
VECTOR = 3, // allows for multi-dimensional arrays
LIST = 4
LIST = 4,
BOOL = 5
} dataType_e;
char* intToString(int x); // convert an int into a string