summary refs log tree commit diff
path: root/src/util.h
blob: 3aafc669ba9ee9c3532a024c0a6062dd92d027fa (plain)
1
2
3
4
5
6
7
8
9
#pragma once

struct color {
	unsigned char r, g, b, a;
};

void *util_loadFile(FILE *const restrict file, size_t *const restrict outsize);
char *util_executableRelativePath(char const *const path, char const *const execPath, size_t dirLength); // allocated on the heap
int util_stringToColor(struct color *color, char const *const str);