From 760031b4a74d70bdeaab4ce9aedfe772acd05bd3 Mon Sep 17 00:00:00 2001 From: Vincent Douillet Date: Fri, 12 Jan 2024 18:14:17 +0100 Subject: browse: build download url for files --- util.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'util.h') diff --git a/util.h b/util.h index 056f5a8..460ed9e 100644 --- a/util.h +++ b/util.h @@ -7,6 +7,14 @@ * be used in case of success). */ int - read_file(char *path, char **output, size_t * read_size); +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); #endif /* UTIL_H */ -- cgit v1.2.3