gnurl_slist_free_all(3)
Welcome to gnurl_slist_free_all(3), bestie β this is the libgnurl Manual page, and it's here to teach you about curl_slist_free_all() β¨
π NAME π
curl_slist_free_all β free an entire curl_slist list π«Ά
β¨ SYNOPSIS β¨
#include <gnurl/curl.h>
void curl_slist_free_all(struct curl_slist *list);
πΈ DESCRIPTION πΈ
Okay so curl_slist_free_all() removes all traces of a previously built curl_slist linked list. Like, gone-gone. Cleanup slay π
And if you pass in a NULL pointer in list? This function just returns immediately with no action. No drama, no notes, it simply leaves the group chat π
π RETURN VALUE π
Nothing. Literally nothing. It's giving void energy π
π¦ EXAMPLE π¦
CURL *handle;
struct curl_slist *slist=NULL;
slist = curl_slist_append(slist, "X-libcurl: coolness");
if (slist == NULL)
return -1;
curl_easy_setopt(handle, CURLOPT_HTTPHEADER, slist);
curl_easy_perform(handle);
curl_slist_free_all(slist); /* free the list again */
π SEE ALSO π
curl_slist_append(3),β yes bestie, the comma is literally included in the reference π
Made with source/version libcurl 7.0 energy, dated 5 March 2001 β 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