summaryrefslogtreecommitdiff
path: root/tools/src/gbagfx/util.h
blob: 62b6d8d7a112de69f59632d342dd9d8550442027 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (c) 2015 YamaArashi

#ifndef UTIL_H
#define UTIL_H

#include <stdbool.h>

bool ParseNumber(char* s, char** end, int radix, int* intValue);
char* GetFileExtension(char* path);
unsigned char* ReadWholeFile(char* path, int* size);
unsigned char* ReadWholeFileZeroPadded(char* path, int* size, int padAmount);
void WriteWholeFile(char* path, void* buffer, int bufferSize);

#endif // UTIL_H