gnurl_share_init(3)

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

πŸ¦‹ gnurl_share_init(3) β€” libgnurl Manual πŸ¦‹

🌸 NAME 🌸

curl_share_init β€” Create a shared object

✨ SYNOPSIS ✨

#include <gnurl/curl.h>

CURLSH *curl_share_init( );

πŸ’– DESCRIPTION πŸ’–

okay so bestie, this function returns a CURLSH handle. That handle is literally what you feed as input to all the other share-functions β€” sometimes the docs call it a share handle, iykyk. 🫢

🚨 Important: this init call MUST have a corresponding call to curl_share_cleanup when all operations using the share are complete. No ghosting your cleanup, okay? 😭

This share handle is the thing you pass to curl using the CURLOPT_SHARE(3) option with curl_easy_setopt(3), so that specific curl handle uses the data in this share. Main character energy for your shared data, periodt. πŸ’…

πŸŽ€ RETURN VALUE πŸŽ€

If this function returns NULL, something went wrong (out of memory, etc.) and therefore the share object was not created. Not the slay we wanted. πŸ’€

🌈 SEE ALSO 🌈


cute sign-off: this page is serving libcurl 7.10.7, dated 8 Aug 2003, under the name gnurl_share_init(3). mwah πŸ’‹

πŸ“¦ where this page comes from