1curl_share_cleanup(3)           libcurl Manual           curl_share_cleanup(3)
2
3
4

NAME

6       curl_share_cleanup - Clean up a shared object
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLSHcode curl_share_cleanup(CURLSH *share_handle);
12

DESCRIPTION

14       This  function deletes a shared object. The share handle cannot be used
15       anymore when this function has been called.
16
17       Passing in a NULL pointer in share_handle will make this  function  re‐
18       turn immediately with no action.
19

EXAMPLE

21         CURLSHcode sh;
22         share = curl_share_init();
23         sh = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT);
24         /* use the share, then ... */
25         curl_share_cleanup(share);
26

AVAILABILITY

28       Added in 7.10
29

RETURN VALUE

31       CURLSHE_OK  (zero)  means  that  the  option was set properly, non-zero
32       means an error occurred as <curl/curl.h> defines. See  the  libcurl-er‐
33       rors.3  man  page  for the full list with descriptions. If an error oc‐
34       curs, then the share object will not be deleted.
35

SEE ALSO

37       curl_share_init(3), curl_share_setopt(3)
38
39
40
41libcurl 7.85.0                   May 17, 2022            curl_share_cleanup(3)
Impressum