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

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);