mirror of https://github.com/moparisthebest/curl
clarified that strings need to be kept around until the handle is closed or
until the pointers are set to another value
This commit is contained in:
parent
210af986ad
commit
f3875048f6
|
@ -2,7 +2,7 @@
|
||||||
.\" nroff -man [file]
|
.\" nroff -man [file]
|
||||||
.\" $Id$
|
.\" $Id$
|
||||||
.\"
|
.\"
|
||||||
.TH curl_easy_cleanup 3 "4 March 2002" "libcurl 7.7" "libcurl Manual"
|
.TH curl_easy_cleanup 3 "13 Nov 2002" "libcurl 7.7" "libcurl Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
curl_easy_cleanup - End a libcurl easy session
|
curl_easy_cleanup - End a libcurl easy session
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -18,6 +18,9 @@ opposite of the \fIcurl_easy_init\fP function and must be called with the same
|
||||||
This will effectively close all connections this handle has used and possibly
|
This will effectively close all connections this handle has used and possibly
|
||||||
has kept open until now. Don't call this function if you intend to transfer
|
has kept open until now. Don't call this function if you intend to transfer
|
||||||
more files.
|
more files.
|
||||||
|
|
||||||
|
When you've called this, you can safely remove all the strings you've
|
||||||
|
previously told libcurl to use, as it won't use them anymore now.
|
||||||
.SH RETURN VALUE
|
.SH RETURN VALUE
|
||||||
None
|
None
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
.\" nroff -man [file]
|
.\" nroff -man [file]
|
||||||
.\" $Id$
|
.\" $Id$
|
||||||
.\"
|
.\"
|
||||||
.TH curl_easy_setopt 3 "18 Sep 2002" "libcurl 7.10" "libcurl Manual"
|
.TH curl_easy_setopt 3 "13 Nov 2002" "libcurl 7.10" "libcurl Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
curl_easy_setopt - set options for a curl easy handle
|
curl_easy_setopt - set options for a curl easy handle
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -22,7 +22,8 @@ curl_easy_setopt() calls in the setup phase.
|
||||||
\fBNOTE:\fP strings passed to libcurl as 'char *' arguments, will not be
|
\fBNOTE:\fP strings passed to libcurl as 'char *' arguments, will not be
|
||||||
copied by the library. Instead you should keep them available until libcurl no
|
copied by the library. Instead you should keep them available until libcurl no
|
||||||
longer needs them. Failing to do so will cause very odd behavior or even
|
longer needs them. Failing to do so will cause very odd behavior or even
|
||||||
crashes.
|
crashes. libcurl will them until you call curl_easy_cleanup() or you set the
|
||||||
|
same option again to use a different pointer.
|
||||||
|
|
||||||
\fBNOTE2:\fP options set with this function call are valid for the forthcoming
|
\fBNOTE2:\fP options set with this function call are valid for the forthcoming
|
||||||
data transfers that are performed when you invoke \fIcurl_easy_perform\fP.
|
data transfers that are performed when you invoke \fIcurl_easy_perform\fP.
|
||||||
|
|
Loading…
Reference in New Issue