#ifndef ARC_STD_IO_H_ #define ARC_STD_IO_H_ #ifdef __cplusplus extern "C" { #endif #include /** * @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_