quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

curl_share_strerror.md (928B)


      1 ---
      2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
      3 SPDX-License-Identifier: curl
      4 Title: curl_share_strerror
      5 Section: 3
      6 Source: libcurl
      7 See-also:
      8   - curl_easy_strerror (3)
      9   - curl_multi_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_share_strerror - return string describing error code
     20 
     21 # SYNOPSIS
     22 
     23 ~~~c
     24 #include <curl/curl.h>
     25 
     26 const char *curl_share_strerror(CURLSHcode errornum);
     27 ~~~
     28 
     29 # DESCRIPTION
     30 
     31 The curl_share_strerror(3) function returns a string describing the
     32 *CURLSHcode* error code passed in the argument *errornum*.
     33 
     34 # %PROTOCOLS%
     35 
     36 # EXAMPLE
     37 
     38 ~~~c
     39 int main(void)
     40 {
     41   CURLSHcode sh;
     42   CURLSH *share = curl_share_init();
     43   sh = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT);
     44   if(sh)
     45     printf("Error: %s\n", curl_share_strerror(sh));
     46 }
     47 ~~~
     48 
     49 # %AVAILABILITY%
     50 
     51 # RETURN VALUE
     52 
     53 A pointer to a null-terminated string.