curl_share_strerror(3)

curl_share_strerror3

Return string describing error code

Usage

#include <curl/curl.h>
const char *curl_share_strerror(CURLSHcode errornum);

Overview

The curl_share_strerror(3) function returns a string describing the CURLSHcode error code passed in the argument errornum.

Examples

int main(void)
{
  CURLSHcode sh;
  CURLSH *share = curl_share_init();
  sh = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT);
  if(sh)
    printf("Error: %s\n", curl_share_strerror(sh));
}

Return value

A pointer to a null-terminated string.

Releases

135 releases since Mac OS X 10.4; the text changed 17 times.

  1. 10.4–10.4.11
  2. 10.5–10.6.2
  3. 10.6.3–10.6.8
  4. 10.7–10.7.5
  5. 10.8–10.11.6
  6. 10.12–10.12.5
  7. 10.12.6–10.14.6
  8. 10.15–11.5
  9. 12.0.1–12.2
  10. 12.3–12.5
  11. 13.0
  12. 13.1
  13. 13.2
  14. 13.3
  15. 13.4
  16. 13.5–14.1
  17. 14.2–14.4
  18. 14.5–26.5

Availability

This function was added in libcurl 7.12.0

From curl 166.0.0.0.1 in macOS 26.5. Parsed by carta from the page's man source.