shengine pre-release
shengine by mrsinho
Loading...
Searching...
No Matches
shFileUtilities.h
Go to the documentation of this file.
1#ifndef SH_FILE_UTILITIES_H
2#define SH_FILE_UTILITIES_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif//__cplusplus
7
8#include <stdint.h>
9
10
11
12#define shReadBinary(path, p_code_size)\
13 shReadCode(path, "rb", p_code_size)
14
15#define shReadText(path, p_code_size)\
16 shReadCode(path, "r", p_code_size)
17
18
19extern const char* shReadCode(
20 const char* path,
21 const char* mode,
22 uint32_t* p_code_size
23);
24
25
26
27#ifdef __cplusplus
28}
29#endif//__cplusplus
30
31#endif//SH_FILE_UTILITIES_H
const char * shReadCode(const char *path, const char *mode, uint32_t *p_code_size)
Definition shFileUtilities.c:17