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