diff options
| author | Vincent Douillet <vincent@vdouillet.fr> | 2024-01-12 18:14:17 +0100 | 
|---|---|---|
| committer | Vincent Douillet <vincent@vdouillet.fr> | 2024-01-12 18:26:22 +0100 | 
| commit | 760031b4a74d70bdeaab4ce9aedfe772acd05bd3 (patch) | |
| tree | 443a456770d5db052a3dfe3d2f1a8e5f66604ccb /util.h | |
| parent | 43f65c76152017420ce723b4d4ef4230ff072818 (diff) | |
browse: build download url for files
Diffstat (limited to 'util.h')
| -rw-r--r-- | util.h | 10 | 
1 files changed, 9 insertions, 1 deletions
| @@ -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 */ | 
