Files
odwetalibc/include/util.h
T
2024-02-04 18:51:42 +01:00

33 lines
556 B
C

#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 {
INT = 0,
FLOAT = 1,
CHAR = 2,
VECTOR = 3, // allows for multi-dimensional arrays
LIST = 4,
BOOL = 5
} dataType_e;
char* intToString(int x); // convert an int into a string
long pow(int x, int n); // x^n
int maxLowerPowerOf10(int x); // biggest power of 10 that is < x
#endif