Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
curl_easy_cleanup(3) | Library Functions Manual | curl_easy_cleanup(3) |
NAME
curl_easy_cleanup - free an easy handleDESCRIPTION
This function is the opposite of curl_easy_init(3). It closes down and frees all resources previously associated with this easy handle.PROTOCOLS
This functionality affects all supported protocolsEXAMPLE
int main(void)
{
CURL *curl = curl_easy_init();
if(curl) {
CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
res = curl_easy_perform(curl);
if(res)
printf("error: %s\n", curl_easy_strerror(res));
curl_easy_cleanup(curl);
}
}
AVAILABILITY
Added in curl 7.1RETURN VALUE
NoneSEE ALSO
curl_easy_duphandle(3), curl_easy_init(3), curl_easy_reset(3), curl_multi_cleanup(3), curl_multi_remove_handle(3)2024-11-21 | libcurl |