From bf3bb228f028cc3d990f1dd54d8d03af038fe91d Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 6 Feb 2024 06:07:09 -0500 Subject: Improve download() * Returns HTTP status code * Emits curl error message to stderr (or to a buffer if the third argument is not NULL) --- include/download.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/download.h b/include/download.h index 41eba98..440c749 100644 --- a/include/download.h +++ b/include/download.h @@ -8,6 +8,6 @@ #include size_t download_writer(void *fp, size_t size, size_t nmemb, void *stream); -int download(char *url, const char *filename); +long download(char *url, const char *filename, char **errmsg); #endif //OMC_DOWNLOAD_H -- cgit