config and string reworked, hashtable updated to use arc_errno

This commit is contained in:
herbglitch 2023-01-17 01:59:08 -07:00
parent 0bbce28469
commit f8d987da8e
12 changed files with 1121 additions and 657 deletions

View file

@ -6,6 +6,7 @@ extern "C" {
#endif
#include <stdint.h>
#include "arc/std/string.h"
/**
* @brief get string and size from file
@ -13,11 +14,8 @@ extern "C" {
* @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);
void ARC_IO_FileToStr(ARC_String *path, ARC_String **data);
#ifdef __cplusplus
}