archeus/include/arc/std/io.h

24 lines
459 B
C
Raw Normal View History

2022-10-27 15:16:54 -06:00
#ifndef ARC_STD_IO_H_
#define ARC_STD_IO_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include "arc/std/string.h"
2022-10-27 15:16:54 -06:00
/**
* @brief get string and size from file
*
* @param path a string to path of target file
* @param data pointer to where string will be created
* this will need to be freed once done using it
*/
void ARC_IO_FileToStr(ARC_String *path, ARC_String **data);
2022-10-27 15:16:54 -06:00
#ifdef __cplusplus
}
#endif
#endif //ARC_STD_IO_H_