2011-03-12 02:14:32 +03:00
|
|
|
.\" **************************************************************************
|
|
|
|
.\" * _ _ ____ _
|
|
|
|
.\" * Project ___| | | | _ \| |
|
|
|
|
.\" * / __| | | | |_) | |
|
|
|
|
.\" * | (__| |_| | _ <| |___
|
|
|
|
.\" * \___|\___/|_| \_\_____|
|
|
|
|
.\" *
|
2023-01-02 15:51:48 +03:00
|
|
|
.\" * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2011-03-12 02:14:32 +03:00
|
|
|
.\" *
|
|
|
|
.\" * This software is licensed as described in the file COPYING, which
|
|
|
|
.\" * you should have received as part of this distribution. The terms
|
2020-11-04 16:02:01 +03:00
|
|
|
.\" * are also available at https://curl.se/docs/copyright.html.
|
2011-03-12 02:14:32 +03:00
|
|
|
.\" *
|
|
|
|
.\" * 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
|
|
|
|
.\" * furnished to do so, under the terms of the COPYING file.
|
|
|
|
.\" *
|
|
|
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
.\" * KIND, either express or implied.
|
|
|
|
.\" *
|
|
|
|
.\" * SPDX-License-Identifier: curl
|
2022-05-17 12:16:50 +03:00
|
|
|
.\" *
|
2011-03-12 02:14:32 +03:00
|
|
|
.\" **************************************************************************
|
2004-04-27 11:05:40 +04:00
|
|
|
.TH curl_easy_strerror 3 "26 Apr 2004" "libcurl 7.12" "libcurl Manual"
|
|
|
|
.SH NAME
|
|
|
|
curl_easy_strerror - return string describing error code
|
|
|
|
.SH SYNOPSIS
|
2021-11-26 16:20:18 +03:00
|
|
|
.nf
|
2012-01-02 18:59:59 +04:00
|
|
|
#include <curl/curl.h>
|
|
|
|
|
|
|
|
const char *curl_easy_strerror(CURLcode errornum);
|
2021-11-26 16:20:18 +03:00
|
|
|
.fi
|
2004-04-27 11:05:40 +04:00
|
|
|
.SH DESCRIPTION
|
2014-10-21 12:26:40 +04:00
|
|
|
The \fIcurl_easy_strerror(3)\fP function returns a string describing the
|
|
|
|
CURLcode error code passed in the argument \fIerrornum\fP.
|
|
|
|
|
|
|
|
Typically applications also appreciate \fICURLOPT_ERRORBUFFER(3)\fP for more
|
2022-03-29 14:58:11 +03:00
|
|
|
specific error descriptions generated at runtime.
|
2021-10-25 09:54:08 +03:00
|
|
|
.SH EXAMPLE
|
|
|
|
.nf
|
|
|
|
/* Perform the request, res will get the return code */
|
|
|
|
res = curl_easy_perform(curl);
|
|
|
|
/* Check for errors */
|
|
|
|
if(res != CURLE_OK)
|
2021-11-05 01:48:23 +03:00
|
|
|
fprintf(stderr, "curl_easy_perform() failed: %s\\n",
|
2021-10-25 09:54:08 +03:00
|
|
|
curl_easy_strerror(res));
|
|
|
|
.fi
|
2006-01-03 02:32:36 +03:00
|
|
|
.SH AVAILABILITY
|
2004-08-31 10:03:16 +04:00
|
|
|
This function was added in libcurl 7.12.0
|
2004-04-27 11:05:40 +04:00
|
|
|
.SH RETURN VALUE
|
2020-06-25 12:38:25 +03:00
|
|
|
A pointer to a null-terminated string.
|
2004-04-27 11:05:40 +04:00
|
|
|
.SH "SEE ALSO"
|
2021-09-27 09:22:54 +03:00
|
|
|
.BR libcurl-errors "(3), " curl_multi_strerror "(3), "
|
|
|
|
.BR curl_share_strerror "(3), " curl_url_strerror "(3)"
|