curl_multi_strerror.md (894B)
1 --- 2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 SPDX-License-Identifier: curl 4 Title: curl_multi_strerror 5 Section: 3 6 Source: libcurl 7 See-also: 8 - curl_easy_strerror (3) 9 - curl_share_strerror (3) 10 - curl_url_strerror (3) 11 - libcurl-errors (3) 12 Protocol: 13 - All 14 Added-in: 7.12.0 15 --- 16 17 # NAME 18 19 curl_multi_strerror - return string describing error code 20 21 # SYNOPSIS 22 23 ~~~c 24 #include <curl/curl.h> 25 26 const char *curl_multi_strerror(CURLMcode errornum); 27 ~~~ 28 29 # DESCRIPTION 30 31 This function returns a string describing the *CURLMcode* error code 32 passed in the argument *errornum*. 33 34 # %PROTOCOLS% 35 36 # EXAMPLE 37 38 ~~~c 39 int 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 54 A pointer to a null-terminated string.