aboutsummaryrefslogtreecommitdiff
path: root/docs/libcurl/curl_mime_name.3
diff options
context:
space:
mode:
authorPatrick Monnerat <patrick@monnerat.net>2017-09-03 16:10:55 +0100
committerPatrick Monnerat <patrick@monnerat.net>2017-09-03 16:10:55 +0100
commitefd93014260e8a7e36e12c1e9c5e4296dd5c5a9e (patch)
tree6d8f375f3d9a15eea59a4362cb966ec360a416a9 /docs/libcurl/curl_mime_name.3
parent1a3f4c19919b09ff0fd0ba228b06a217d85d4265 (diff)
mime: use size_t instead of ssize_t in public API interface.
To support telling a string is nul-terminated, symbol CURL_ZERO_TERMINATED has been introduced. Documentation updated accordingly. symbols in versions updated. Added form API symbols deprecation info.
Diffstat (limited to 'docs/libcurl/curl_mime_name.3')
-rw-r--r--docs/libcurl/curl_mime_name.36
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/libcurl/curl_mime_name.3 b/docs/libcurl/curl_mime_name.3
index 5ef7c887f..25b4b35c6 100644
--- a/docs/libcurl/curl_mime_name.3
+++ b/docs/libcurl/curl_mime_name.3
@@ -26,7 +26,7 @@ curl_mime_name - set a mime part's name
.B #include <curl/curl.h>
.sp
.BI "CURLcode curl_mime_name(curl_mimepart * " part ", const char * " name
-.BI ", ssize_t " namesize ");"
+.BI ", size_t " namesize ");"
.ad
.SH DESCRIPTION
curl_mime_name() sets a mime part's name. This is the way HTTP form fields are
@@ -34,8 +34,8 @@ named.
\fIname\fP points to the name byte string; the string may contain nul bytes
unless \fInamesize\fP is -1.
-\fInamesize\fP is the name length: it can be set to -1 to indicate
-\fIname\fP is a nul-terminated string.
+\fInamesize\fP is the name length: it can be set to \fICURL_ZERO_TERMINATED\fP
+to indicate \fIname\fP is a nul-terminated string.
\fIpart\fP is the part's handle to assign a name to.
The name string is copied into the part, thus the associated storage may safely