curl_share_strerror.3 938 B

1234567891011121314151617181920212223242526272829303132333435
  1. .\" generated by cd2nroff 0.1 from curl_share_strerror.md
  2. .TH curl_share_strerror 3 "2025-01-17" libcurl
  3. .SH NAME
  4. curl_share_strerror \- return string describing error code
  5. .SH SYNOPSIS
  6. .nf
  7. #include <curl/curl.h>
  8. const char *curl_share_strerror(CURLSHcode errornum);
  9. .fi
  10. .SH DESCRIPTION
  11. The \fIcurl_share_strerror(3)\fP function returns a string describing the
  12. \fICURLSHcode\fP error code passed in the argument \fIerrornum\fP.
  13. .SH PROTOCOLS
  14. This functionality affects all supported protocols
  15. .SH EXAMPLE
  16. .nf
  17. int main(void)
  18. {
  19. CURLSHcode sh;
  20. CURLSH *share = curl_share_init();
  21. sh = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT);
  22. if(sh)
  23. printf("Error: %s\\n", curl_share_strerror(sh));
  24. }
  25. .fi
  26. .SH AVAILABILITY
  27. Added in curl 7.12.0
  28. .SH RETURN VALUE
  29. A pointer to a null\-terminated string.
  30. .SH SEE ALSO
  31. .BR curl_easy_strerror (3),
  32. .BR curl_multi_strerror (3),
  33. .BR curl_url_strerror (3),
  34. .BR libcurl-errors (3)