Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #263973

Category curl
Changed by Ted Lyngmo <tedohnoyoudont@lyncon.se>
Changed at Wed 08 Apr 2026 11:25:54
Repository https://github.com/curl/curl.git
Project curl
Branch master
Revision 135665036f2d98efb928df1195f9ef80208483dd

Comments

docs: use the correct CURLOPT_WRITEFUNCTION signature
In order to not encourage users to use incompatible function pointers,
change the callback function definitions to use `char *` instead of
`void *` for the first argument.

Triggered by https://stackoverflow.com/questions/79921871/curl-c-c-library-based-application-produces-erronious-response-for-http-post-r#comment141032037_79921871 :

"The code was mostly modified from
 [this example code](https://curl.se/libcurl/c/postinmemory.html),
 honestly I never knew this is wrong. Thanks for pointing it out."

Signed-off-by: Ted Lyngmo <ted@lyncon.se>
Closes #21265

Changed files