91 char *p = (
char *)realloc(b->
d, b->
n + add + 1);
93 memcpy(p + b->
n, ptr, add);
115 FILE *f = (FILE *)ud;
116 return fwrite(ptr, sz, nm, f);
static size_t fun_curl_write_cb(void *ptr, size_t sz, size_t nm, void *ud)
libcurl write callback that appends data to a FunCurlBuf.
static size_t fun_curl_file_write_cb(void *ptr, size_t sz, size_t nm, void *ud)
libcurl write callback that writes directly to a FILE*.
Simple growable buffer for libcurl write callbacks.