archeus/include/arc/std/io.h
herbglitch db1adbb838 first
2022-10-27 15:16:54 -06:00

26 lines
No EOL
525 B
C

#ifndef ARC_STD_IO_H_
#define ARC_STD_IO_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
/**
* @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
* @param size size of string
*
* @return int 0 on success, ARC_ERRNO_ on fail
*/
int32_t ARC_IO_FileToStr(const char *path, char **data, uint64_t *size);
#ifdef __cplusplus
}
#endif
#endif //ARC_STD_IO_H_