MCPcopy Create free account
hub / github.com/antirez/botlib / makeHTTPGETCallWriterFILE

Function makeHTTPGETCallWriterFILE

botlib.c:247–252  ·  view source on GitHub ↗

The callback writing the CURL reply to a file. */

Source from the content-addressed store, hash-verified

245
246/* The callback writing the CURL reply to a file. */
247size_t makeHTTPGETCallWriterFILE(char *ptr, size_t size, size_t nmemb, void *userdata)
248{
249 UNUSED(size);
250 FILE **fp = userdata;
251 return fwrite(ptr,1,nmemb,*fp);
252}
253
254
255/* Request the specified URL in a blocking way, returns the content (or

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected