added allocFile to utils

This commit is contained in:
Shaun Inman 2023-01-28 11:11:21 -05:00
parent 9c72a4f261
commit 3d24d19659
2 changed files with 15 additions and 0 deletions

View file

@ -15,6 +15,7 @@ void trimTrailingNewlines(char* line);
int exists(char* path);
void touch(char* path);
void putFile(char* path, char* contents);
char* allocFile(char* path); // caller must free
void getFile(char* path, char* buffer, size_t buffer_size);
void putInt(char* path, int value);
int getInt(char* path);