KiCad PCB EDA Suite
kicad_curl_easy.cpp File Reference
#include <kicad_curl/kicad_curl_easy.h>
#include <cstddef>
#include <exception>
#include <stdarg.h>
#include <sstream>
#include <richio.h>

Go to the source code of this file.

Functions

static size_t write_callback (void *contents, size_t size, size_t nmemb, void *userp)
 

Function Documentation

static size_t write_callback ( void *  contents,
size_t  size,
size_t  nmemb,
void *  userp 
)
static

Definition at line 34 of file kicad_curl_easy.cpp.

Referenced by KICAD_CURL_EASY::KICAD_CURL_EASY().

35 {
36  size_t realsize = size * nmemb;
37 
38  std::string* p = (std::string*) userp;
39 
40  p->append( (const char*) contents, realsize );
41 
42  return realsize;
43 }