Re: [xml] Retrive schema validation error



On Thu, 2004-04-01 at 23:30, Chris sun wrote:

void error_func(void *ctxt,  char * msg)
{
    printf("%s", msg);
}

Your callback function is ignoring the arguments to the format
string (the msg variable above). Try the following instead.
Caveat: I have not tested this.

#include <stdio.h>
#include <stdarg.h>

void error_func(void *context, const char *format, ...)
{
  va_list arguments;

  va_start(arguments, format);
  vprintf(format, arguments);
  va_end(arguments);
}





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]