• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1---
2c: Copyright (C) Daniel Stenberg, <daniel.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)
12---
13
14# NAME
15
16curl_multi_strerror - return string describing error code
17
18# SYNOPSIS
19
20~~~c
21#include <curl/curl.h>
22
23const char *curl_multi_strerror(CURLMcode errornum);
24~~~
25
26# DESCRIPTION
27
28This function returns a string describing the *CURLMcode* error code
29passed in the argument *errornum*.
30
31# EXAMPLE
32
33~~~c
34int main(void)
35{
36  int still_running;
37  CURLM *multi = curl_multi_init();
38
39  CURLMcode mc = curl_multi_perform(multi, &still_running);
40  if(mc)
41    printf("error: %s\n", curl_multi_strerror(mc));
42}
43~~~
44
45# AVAILABILITY
46
47This function was added in libcurl 7.12.0
48
49# RETURN VALUE
50
51A pointer to a null-terminated string.
52