curl_share_strerror3
Return string describing error code
Usage
#include <curl/curl.h> const char *curl_share_strerror(CURLSHcode errornum);
Overview
The curl_share_strerror(3) function returns a string describing the CURLSHcode error code passed in the argument errornum.
Examples
int main(void)
{
CURLSHcode sh;
CURLSH *share = curl_share_init();
sh = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT);
if(sh)
printf("Error: %s\n", curl_share_strerror(sh));
}
Return value
A pointer to a null-terminated string.
Releases
135 releases since Mac OS X 10.4; the text changed 17 times.