gnurl_share_init(3)
π¦ 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
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2020, 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