diff options
author | Vincent Douillet <vincent@vdouillet.fr> | 2023-11-28 08:38:19 +0100 |
---|---|---|
committer | Vincent Douillet <vincent@vdouillet.fr> | 2023-11-29 15:45:28 +0100 |
commit | 43f65c76152017420ce723b4d4ef4230ff072818 (patch) | |
tree | 5c981b2d6949ebd5a5bdefe112383f6874d9342a /util.h | |
parent | a8158372e4173f760d893516c0d8aecbb0e737ac (diff) |
browse: use khttp_template
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,12 @@ +#ifndef UTIL_H +#define UTIL_H + +/* + * Reads the file denoted by path into a newly allocated output buffer. Returns + * 0 for success, -1 for error. read_size is the size of output buffer (only to + * be used in case of success). + */ +int + read_file(char *path, char **output, size_t * read_size); + +#endif /* UTIL_H */ |