return type CURLFORMcode instead of plain int
This commit is contained in:
parent
5d2944c211
commit
c3c392fc98
@ -2,13 +2,13 @@
|
|||||||
.\" nroff -man [file]
|
.\" nroff -man [file]
|
||||||
.\" $Id$
|
.\" $Id$
|
||||||
.\"
|
.\"
|
||||||
.TH curl_formadd 3 "1 Match 2002" "libcurl 7.9.1" "libcurl Manual"
|
.TH curl_formadd 3 "21 May 2002" "libcurl 7.9.8" "libcurl Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
curl_formadd - add a section to a multipart/formdata HTTP POST
|
curl_formadd - add a section to a multipart/formdata HTTP POST
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B #include <curl/curl.h>
|
.B #include <curl/curl.h>
|
||||||
.sp
|
.sp
|
||||||
.BI "int curl_formadd(struct HttpPost ** " firstitem,
|
.BI "CURLFORMcode curl_formadd(struct HttpPost ** " firstitem,
|
||||||
.BI "struct HttpPost ** " lastitem, " ...);"
|
.BI "struct HttpPost ** " lastitem, " ...);"
|
||||||
.ad
|
.ad
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
@ -83,7 +83,9 @@ you call \fIcurl_form_free\fP and \fIcurl_easy_cleanup\fP.
|
|||||||
|
|
||||||
See example below.
|
See example below.
|
||||||
.SH RETURN VALUE
|
.SH RETURN VALUE
|
||||||
Returns non-zero if an error occurs.
|
0 means everything was ok, non-zero means an error occurred as
|
||||||
|
.I <curl/curl.h>
|
||||||
|
defines.
|
||||||
.SH EXAMPLE
|
.SH EXAMPLE
|
||||||
.nf
|
.nf
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user