curl_multi_strerror.3 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. .\" **************************************************************************
  2. .\" * _ _ ____ _
  3. .\" * Project ___| | | | _ \| |
  4. .\" * / __| | | | |_) | |
  5. .\" * | (__| |_| | _ <| |___
  6. .\" * \___|\___/|_| \_\_____|
  7. .\" *
  8. .\" * Copyright (C) 1998 - 2022, 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_multi_strerror 3 "26 Apr 2004" "libcurl 7.12" "libcurl Manual"
  25. .SH NAME
  26. curl_multi_strerror - return string describing error code
  27. .SH SYNOPSIS
  28. .nf
  29. .B #include <curl/curl.h>
  30. .BI "const char *curl_multi_strerror(CURLMcode " errornum ");"
  31. .SH DESCRIPTION
  32. The curl_multi_strerror() function returns a string describing the
  33. \fICURLMcode\fP error code passed in the argument \fIerrornum\fP.
  34. .SH EXAMPLE
  35. .nf
  36. int still_running;
  37. CURLMcode mc = curl_multi_perform(multi_handle, &still_running);
  38. if(mc)
  39. printf("error: %s\\n", curl_multi_strerror(mc));
  40. .fi
  41. .SH AVAILABILITY
  42. This function was added in libcurl 7.12.0
  43. .SH RETURN VALUE
  44. A pointer to a null-terminated string.
  45. .SH "SEE ALSO"
  46. .BR libcurl-errors "(3), " curl_easy_strerror "(3), "
  47. .BR curl_share_strerror "(3), " curl_url_strerror "(3)"