first
This commit is contained in:
commit
db1adbb838
35 changed files with 4408 additions and 0 deletions
26
include/arc/std/io.h
Normal file
26
include/arc/std/io.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#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_
|
||||
Loading…
Add table
Add a link
Reference in a new issue