1--- 2c: Copyright (C) Daniel Stenberg, <daniel.se>, et al. 3SPDX-License-Identifier: curl 4Title: curl_share_strerror 5Section: 3 6Source: libcurl 7See-also: 8 - curl_easy_strerror (3) 9 - curl_multi_strerror (3) 10 - curl_url_strerror (3) 11 - libcurl-errors (3) 12--- 13 14# NAME 15 16curl_share_strerror - return string describing error code 17 18# SYNOPSIS 19 20~~~c 21#include <curl/curl.h> 22 23const char *curl_share_strerror(CURLSHcode errornum); 24~~~ 25 26# DESCRIPTION 27 28The curl_share_strerror(3) function returns a string describing the 29*CURLSHcode* error code passed in the argument *errornum*. 30 31# EXAMPLE 32 33~~~c 34int main(void) 35{ 36 CURLSHcode sh; 37 CURLSH *share = curl_share_init(); 38 sh = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT); 39 if(sh) 40 printf("Error: %s\n", curl_share_strerror(sh)); 41} 42~~~ 43 44# AVAILABILITY 45 46This function was added in libcurl 7.12.0 47 48# RETURN VALUE 49 50A pointer to a null-terminated string. 51