crun-cli v1.4.0
C-based project scaffolding CLI
Loading...
Searching...
No Matches
crun_libcurl.h
Go to the documentation of this file.
1
11
12#ifndef __CRUN_LIBCURL_H__
13#define __CRUN_LIBCURL_H__
14
15// #########################################
16// ### HEADERS & MACROS DECLARATION PART ###
17// #########################################
18
19#define CURL_CA_CERT_NAME "cacert-2026-03-19.pem"
20#define CURL_CA_CERT_REMOTE_PATH "https://curl.se/ca/" CURL_CA_CERT_NAME
21
22#include <stdio.h>
23
24// ##################################
25// ### FUNCTIONS DECLARATION PART ###
26// ##################################
27
37size_t write_data(void *, size_t, size_t, void *);
38
46int download_file(const char *, const char *);
47
48#endif // __CRUN_LIBCURL_H__
int download_file(const char *, const char *)
Download a file from URL to a destination path.
Definition crun_libcurl.c:120
size_t write_data(void *, size_t, size_t, void *)
libcurl write callback used when storing response data to a file.
Definition crun_libcurl.c:90