gnurl_share_cleanup(3)
π gnurl_share_cleanup(3) β the libgnurl manual, bestie edition π
okay so you're in the libgnurl manual, welcome, this page is literally about saying bye-bye to a shared object β¨
π NAME π
curl_share_cleanup β clean up a shared object. that's it, that's the whole vibe. it's the cleanup girlie π§Ή
πΈ SYNOPSIS πΈ
#include <gnurl/curl.h>
CURLSHcode curl_share_cleanup(CURLSH *share_handle);
like, just include the header and call the one function, no cap π«Ά
π¦ DESCRIPTION π¦
okay so this function deletes a shared object. periodt. once you've called it, that share handle is done β you cannot use it anymore. it's giving "we're never getting back together" π
and bestie listen β if you pass in a NULL pointer in share_handle, this function just returns immediately with no action. literally does nothing. icon behaviour tbh, no drama π
β RETURN VALUE β
CURLSHE_OK(zero) β slay, the option was set properly β¨- non-zero β uh oh, an error occurred as
<gnurl/curl.h>defines π
for the full list with descriptions, see the libcurl-errors.3 man page, iykyk π
π¨ important bestie: if an error occurs, then the share object will not be deleted. so like... check your return value fr fr. be responsible with your cleanup π
π SEE ALSO π
curl_share_init(3)β where you make the friend group in the first place πcurl_share_setopt(3)β where you set the rules for the friend group π
and that's the page!! π§ this absolute classic is from libcurl 7.10.7, dated 8 Aug 2003 β yeah she's vintage but she still ate ππ¦πΈ go forth and clean up your shared objects responsibly, mwah π
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms