From d21e75a6ae0cda978e68b26579e5665a0a92ca0d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 31 Jul 2025 10:13:34 +0200 Subject: [PATCH] curl_mime_data_cb.md: mention what datasize is for Closes #18115 --- docs/libcurl/curl_mime_data_cb.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/libcurl/curl_mime_data_cb.md b/docs/libcurl/curl_mime_data_cb.md index 9404eb20e5..9b3fdd5593 100644 --- a/docs/libcurl/curl_mime_data_cb.md +++ b/docs/libcurl/curl_mime_data_cb.md @@ -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); } } ~~~ -- 2.47.2