gnurl_share_cleanup(3)

πŸ“¦ version 7.72.0, in nixos 26.05, nixpkgs unstable

πŸŽ€ 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 🌈


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