xref: /curl/docs/libcurl/curl_multi_strerror.md (revision e3fe0200)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Title: curl_multi_strerror
5Section: 3
6Source: libcurl
7See-also:
8  - curl_easy_strerror (3)
9  - curl_share_strerror (3)
10  - curl_url_strerror (3)
11  - libcurl-errors (3)
12Protocol:
13  - All
14---
15
16# NAME
17
18curl_multi_strerror - return string describing error code
19
20# SYNOPSIS
21
22~~~c
23#include <curl/curl.h>
24
25const char *curl_multi_strerror(CURLMcode errornum);
26~~~
27
28# DESCRIPTION
29
30This function returns a string describing the *CURLMcode* error code
31passed in the argument *errornum*.
32
33# EXAMPLE
34
35~~~c
36int main(void)
37{
38  int still_running;
39  CURLM *multi = curl_multi_init();
40
41  CURLMcode mc = curl_multi_perform(multi, &still_running);
42  if(mc)
43    printf("error: %s\n", curl_multi_strerror(mc));
44}
45~~~
46
47# AVAILABILITY
48
49This function was added in libcurl 7.12.0
50
51# RETURN VALUE
52
53A pointer to a null-terminated string.
54