KiCad PCB EDA Suite
kicad_curl_easy.cpp File Reference
#include <kicad_curl/kicad_curl.h>
#include <kicad_curl/kicad_curl_easy.h>
#include <cstddef>
#include <exception>
#include <stdarg.h>
#include <sstream>
#include <ki_exception.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 35 of file kicad_curl_easy.cpp.

Referenced by KICAD_CURL_EASY::KICAD_CURL_EASY().

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