2
0

curl_share_strerror.3 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. .\" **************************************************************************
  2. .\" * _ _ ____ _
  3. .\" * Project ___| | | | _ \| |
  4. .\" * / __| | | | |_) | |
  5. .\" * | (__| |_| | _ <| |___
  6. .\" * \___|\___/|_| \_\_____|
  7. .\" *
  8. .\" * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
  9. .\" *
  10. .\" * This software is licensed as described in the file COPYING, which
  11. .\" * you should have received as part of this distribution. The terms
  12. .\" * are also available at https://curl.se/docs/copyright.html.
  13. .\" *
  14. .\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
  15. .\" * copies of the Software, and permit persons to whom the Software is
  16. .\" * furnished to do so, under the terms of the COPYING file.
  17. .\" *
  18. .\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
  19. .\" * KIND, either express or implied.
  20. .\" *
  21. .\" * SPDX-License-Identifier: curl
  22. .\" *
  23. .\" **************************************************************************
  24. .TH curl_share_strerror 3 "Apr 26, 2004" "libcurl" "libcurl"
  25. .SH NAME
  26. curl_share_strerror - return string describing error code
  27. .SH SYNOPSIS
  28. .nf
  29. .B #include <curl/curl.h>
  30. .BI "const char *curl_share_strerror(CURLSHcode " errornum ");"
  31. .SH DESCRIPTION
  32. The \fIcurl_share_strerror(3)\fP function returns a string describing the
  33. \fICURLSHcode\fP error code passed in the argument \fIerrornum\fP.
  34. .SH EXAMPLE
  35. .nf
  36. CURLSHcode sh;
  37. share = curl_share_init();
  38. sh = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT);
  39. if(sh)
  40. printf("Error: %s\\n", curl_share_strerror(sh));
  41. .fi
  42. .SH AVAILABILITY
  43. This function was added in libcurl 7.12.0
  44. .SH RETURN VALUE
  45. A pointer to a null-terminated string.
  46. .SH "SEE ALSO"
  47. .BR libcurl-errors "(3), " curl_multi_strerror "(3), "
  48. .BR curl_easy_strerror "(3), " curl_url_strerror "(3)"