]> git.sesse.net Git - nageru/blob - shared/read_file.h
Fix some Clang 7 warnings.
[nageru] / shared / read_file.h
1 #ifndef _READ_FILE_H
2 #define _READ_FILE_H 1
3
4 #include <string>
5
6 #include <stdint.h>
7
8 // Read the contents of <filename> and return it as a string.
9 // If the file does not exist, which is typical outside of development,
10 // return the given memory area instead (presumably created by bin2h).
11
12 std::string read_file(const std::string &filename, const unsigned char *start = nullptr, const size_t size = 0);
13
14 #endif