summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-12-10 07:46:43 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-12-10 07:46:43 +0000
commitbbcfc106772ba3dce952da099acf95ab00453e6a (patch)
tree990ad85219a284db93bb632602a5dafcc962e9fb
parent47e67eab26c8d2702d254dcc7e7fa2c69228c32a (diff)
downloadgnurl-bbcfc106772ba3dce952da099acf95ab00453e6a.tar.gz
gnurl-bbcfc106772ba3dce952da099acf95ab00453e6a.tar.bz2
gnurl-bbcfc106772ba3dce952da099acf95ab00453e6a.zip
corrected the READFUNCTION docs slightly
-rw-r--r--docs/curl_easy_setopt.37
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/curl_easy_setopt.3 b/docs/curl_easy_setopt.3
index 0810c0478..d22255a5c 100644
--- a/docs/curl_easy_setopt.3
+++ b/docs/curl_easy_setopt.3
@@ -2,7 +2,7 @@
.\" nroff -man [file]
.\" $Id$
.\"
-.TH curl_easy_setopt 3 "30 Nov 2001" "libcurl 7.9.2" "libcurl Manual"
+.TH curl_easy_setopt 3 "10 Dec 2001" "libcurl 7.9.2" "libcurl Manual"
.SH NAME
curl_easy_setopt - Set curl easy-session options
.SH SYNOPSIS
@@ -77,9 +77,8 @@ function gets called by libcurl as soon as it needs to read data in order to
send it to the peer. The data area pointed at by the pointer \fIptr\fP may be
filled with at most \fIsize\fP multiplied with \fInmemb\fP number of
bytes. Your function must return the actual number of bytes that you stored in
-that memory area. Returning -1 will signal an error to the library and cause
-it to abort the current transfer immediately (with a \fICURLE_READ_ERROR\fP
-return code).
+that memory area. Returning 0 will signal end-of-file to the library and cause
+it to stop the current transfer.
.TP
.B CURLOPT_INFILESIZE
When uploading a file to a remote site, this option should be used to tell