From efd93014260e8a7e36e12c1e9c5e4296dd5c5a9e Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Sun, 3 Sep 2017 16:10:55 +0100 Subject: 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. --- docs/libcurl/curl_mime_name.3 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/libcurl/curl_mime_name.3') 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 .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 -- cgit v1.2.3