1curl_url_strerror(3)            libcurl Manual            curl_url_strerror(3)
2
3
4

NAME

6       curl_url_strerror - return string describing error code
7

SYNOPSIS

9       #include <curl/curl.h>
10       const char *curl_url_strerror(CURLUcode errornum);
11

DESCRIPTION

13       The curl_url_strerror() function returns a string describing the CURLU‐
14       code error code passed in the argument errornum.
15

EXAMPLE

17         CURLUcode rc;
18         CURLU *url = curl_url();
19         rc = curl_url_set(url, CURLUPART_URL, "https://example.com", 0);
20         if(rc)
21           printf("URL error: %s\n", curl_url_strerror(rc));
22         curl_url_cleanup(url);
23
24

AVAILABILITY

26       Added in 7.80.0
27

RETURN VALUE

29       A pointer to a null-terminated string.
30

SEE ALSO

32       libcurl-errors(3),  curl_url_get(3),  curl_url_set(3),   curl_easy_str‐
33       error(3), curl_multi_strerror(3), curl_share_strerror(3)
34
35
36
37libcurl 8.0.1                  January 02, 2023           curl_url_strerror(3)
Impressum