curl_mime_data_cb.md: mention what datasize is for

Closes #18115
This commit is contained in:
Daniel Stenberg 2025-07-31 10:13:34 +02:00
parent 4108d11008
commit d21e75a6ae
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -44,6 +44,8 @@ from a data read callback function.
*part* is the part's to assign contents to.
*datasize* is the number of bytes the read callback is expected to provide.
*readfunc* is a pointer to a data read callback function, with a signature
as shown by the above prototype. It may not be set to NULL.
@ -160,8 +162,8 @@ int main(void)
hugectl.buffer = hugedata;
hugectl.size = sizeof(hugedata);
hugectl.position = 0;
curl_mime_data_cb(part, hugectl.size, read_callback, seek_callback, NULL,
&hugectl);
curl_mime_data_cb(part, hugectl.size, read_callback,
seek_callback, NULL, &hugectl);
}
}
~~~