Archeus 0.0.0
A C library and game engine that focuses on documentation
Loading...
Searching...
No Matches
io.h
Go to the documentation of this file.
1#ifndef ARC_STD_IO_H_
2#define ARC_STD_IO_H_
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#include <stdint.h>
9#include "arc/std/string.h"
10
11/**
12 * @brief get string and size from file
13 *
14 * @param path a string to path of target file
15 * @param data pointer to where uint8_t array will be created
16 * this will need to be freed once done using it
17 * @param length length of the data read in
18*/
19void ARC_IO_ReadFileToUint8t(ARC_String *path, uint8_t **data, uint64_t *length);
20
21/**
22 * @brief get string and size from file
23 *
24 * @param path a string to path of target file
25 * @param data pointer to where string will be created
26 * this will need to be freed once done using it
27*/
29
30/**
31 * @brief write string to file
32 *
33 * @param path a string to path of target file
34 * @param data data to be written
35*/
37
38#ifdef __cplusplus
39}
40#endif
41
42#endif //ARC_STD_IO_H_
void ARC_IO_FileToStr(ARC_String *path, ARC_String **data)
get string and size from file
void ARC_IO_WriteStrToFile(ARC_String *path, ARC_String *data)
write string to file
void ARC_IO_ReadFileToUint8t(ARC_String *path, uint8_t **data, uint64_t *length)
get string and size from file
substring position within a string
Definition string.h:14