summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2024-01-23 09:22:00 +0100
committerVincent Douillet <vincent@vdouillet.fr>2024-02-08 09:27:54 +0100
commit42f538cc66546997a166dbe67e489c9afabbb908 (patch)
tree718bb6b7161892c4b964499c1818c6d7bf0bd6a6 /util.h
parent760031b4a74d70bdeaab4ce9aedfe772acd05bd3 (diff)
download files
Diffstat (limited to 'util.h')
-rw-r--r--util.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/util.h b/util.h
index 460ed9e..2205808 100644
--- a/util.h
+++ b/util.h
@@ -3,18 +3,10 @@
/*
* 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).
+ * 0 for success, -1 for error. The size_t 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);
-
-/*
- * Copies the provided string to a newly allocated buffer. Length of the
- * created string is the same as the provided string.
- * Returns the new string or NULL in case of failure.
- */
-char *
-v_strcpy(char *str, size_t len);
+read_file(char *, char **, size_t *);
#endif /* UTIL_H */