21 lines
427 B
C
21 lines
427 B
C
#ifndef UTIL_H
|
|
#define UTIL_H
|
|
|
|
typedef long unsigned int size_t;
|
|
|
|
typedef enum {
|
|
INT = 0,
|
|
FLOAT = 1,
|
|
CHAR = 2,
|
|
VECTOR = 3, // allows for multi-dimensional arrays
|
|
LIST = 4
|
|
} 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
|