This commit is contained in:
frosty
2026-02-23 00:57:21 -05:00
commit b280ab6bcd
37 changed files with 2787 additions and 0 deletions

8
src/Utility/Utility.c Normal file
View File

@@ -0,0 +1,8 @@
#include "Utility.h"
int hex_to_int(char c) {
if (c >= '0' && c <= '9') return c - '0';
if (c >= 'a' && c <= 'f') return c - 'a' + 10;
if (c >= 'A' && c <= 'F') return c - 'A' + 10;
return -1;
}