Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 1 | .\" ************************************************************************** |
| 2 | .\" * _ _ ____ _ |
| 3 | .\" * Project ___| | | | _ \| | |
| 4 | .\" * / __| | | | |_) | | |
| 5 | .\" * | (__| |_| | _ <| |___ |
| 6 | .\" * \___|\___/|_| \_\_____| |
| 7 | .\" * |
Elliott Hughes | f344baa | 2021-12-07 09:12:34 -0800 | [diff] [blame] | 8 | .\" * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al. |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 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 |
Elliott Hughes | 34dd5f4 | 2021-08-10 13:01:18 -0700 | [diff] [blame] | 12 | .\" * are also available at https://curl.se/docs/copyright.html. |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 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 | .\" ************************************************************************** |
Elliott Hughes | f344baa | 2021-12-07 09:12:34 -0800 | [diff] [blame] | 22 | .TH curl_multi_strerror 3 "November 04, 2021" "libcurl 7.80.0" "libcurl Manual" |
Elliott Hughes | 82be86d | 2017-09-20 17:00:17 -0700 | [diff] [blame] | 23 | |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 24 | .SH NAME |
| 25 | curl_multi_strerror - return string describing error code |
| 26 | .SH SYNOPSIS |
| 27 | .nf |
| 28 | .B #include <curl/curl.h> |
| 29 | .BI "const char *curl_multi_strerror(CURLMcode " errornum ");" |
| 30 | .SH DESCRIPTION |
| 31 | The curl_multi_strerror() function returns a string describing the CURLMcode |
| 32 | error code passed in the argument \fIerrornum\fP. |
Elliott Hughes | f344baa | 2021-12-07 09:12:34 -0800 | [diff] [blame] | 33 | .SH EXAMPLE |
| 34 | .nf |
| 35 | int still_running; |
| 36 | |
| 37 | CURLMcode mc = curl_multi_perform(multi_handle, &still_running); |
| 38 | if(mc) |
| 39 | printf("error: %s\\n", curl_multi_strerror(mc)); |
| 40 | .fi |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 41 | .SH AVAILABILITY |
| 42 | This function was added in libcurl 7.12.0 |
| 43 | .SH RETURN VALUE |
Haibo Huang | ca2a802 | 2020-07-10 20:17:42 -0700 | [diff] [blame] | 44 | A pointer to a null-terminated string. |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 45 | .SH "SEE ALSO" |
Elliott Hughes | f344baa | 2021-12-07 09:12:34 -0800 | [diff] [blame] | 46 | .BR libcurl-errors "(3), " curl_easy_strerror "(3), " |
| 47 | .BR curl_share_strerror "(3), " curl_url_strerror "(3)" |