summaryrefslogtreecommitdiff
path: root/src/shared.h
blob: 430af4b38bfc07a2fc8994e0245b8e0814d418a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#include <stdio.h>
#include <stdbool.h>

__attribute__ ((__format__(printf, 1, 2)))
void error(const char* format, ...);

FILE* get_file(const char* path, const char* type);

long int get_number(const char* text);

bool streql(const char* a, const char* b);

bool prefix(const char* pre, const char* str);