![]() |
![]()
| ![]() |
![]()
NAMEcurl_url_dup - duplicate a URL handle SYNOPSIS#include <curl/curl.h> CURLU *curl_url_dup(const CURLU *inhandle); DESCRIPTIONDuplicates the URL object the input CURLU inhandle identifies and returns a pointer to the copy as a new CURLU handle. The new handle also needs to be freed with curl_url_cleanup(3). PROTOCOLSThis functionality affects all supported protocols EXAMPLEint main(void) { AVAILABILITYAdded in curl 7.62.0 RETURN VALUEReturns a pointer to a new CURLU handle or NULL if out of memory. SEE ALSOCURLOPT_CURLU(3), curl_url(3), curl_url_cleanup(3), curl_url_get(3), curl_url_set(3)
|