All pastes #424724 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-04-04 23:21 UTC
rendered paste body
main.c: In function 'writer':
main.c:56: error: request for member 'append' in something not a structure or union


int writer(char *data, size_t size, size_t nmemb,
                  std::string *buffer)
{

  int result = 0;


  if (buffer != NULL)
  {

    buffer->append(data, size * nmemb);


    result = size * nmemb;
  }

  return result;
}