diff options
Diffstat (limited to 'docs/libcurl/curl_multi_strerror.3')
-rw-r--r-- | docs/libcurl/curl_multi_strerror.3 | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/docs/libcurl/curl_multi_strerror.3 b/docs/libcurl/curl_multi_strerror.3 index b5e5f73d9..7c6c8f276 100644 --- a/docs/libcurl/curl_multi_strerror.3 +++ b/docs/libcurl/curl_multi_strerror.3 @@ -5,11 +5,11 @@ .\" * | (__| |_| | _ <| |___ .\" * \___|\___/|_| \_\_____| .\" * -.\" * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al. +.\" * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al. .\" * .\" * This software is licensed as described in the file COPYING, which .\" * you should have received as part of this distribution. The terms -.\" * are also available at https://curl.haxx.se/docs/copyright.html. +.\" * are also available at https://curl.se/docs/copyright.html. .\" * .\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell .\" * copies of the Software, and permit persons to whom the Software is @@ -19,7 +19,7 @@ .\" * KIND, either express or implied. .\" * .\" ************************************************************************** -.TH curl_multi_strerror 3 "June 25, 2020" "libcurl 7.73.0" "libcurl Manual" +.TH curl_multi_strerror 3 "November 04, 2021" "libcurl 7.80.0" "libcurl Manual" .SH NAME curl_multi_strerror - return string describing error code @@ -30,9 +30,18 @@ curl_multi_strerror - return string describing error code .SH DESCRIPTION The curl_multi_strerror() function returns a string describing the CURLMcode error code passed in the argument \fIerrornum\fP. +.SH EXAMPLE +.nf +int still_running; + +CURLMcode mc = curl_multi_perform(multi_handle, &still_running); +if(mc) + printf("error: %s\\n", curl_multi_strerror(mc)); +.fi .SH AVAILABILITY This function was added in libcurl 7.12.0 .SH RETURN VALUE A pointer to a null-terminated string. .SH "SEE ALSO" -.BR libcurl-errors "(3), " curl_easy_strerror "(3), " curl_share_strerror "(3)" +.BR libcurl-errors "(3), " curl_easy_strerror "(3), " +.BR curl_share_strerror "(3), " curl_url_strerror "(3)" |