Re: [xml] Retrive schema validation error
- From: Bjorn Reese <breese mail1 stofanet dk>
- To: xml gnome org
- Subject: Re: [xml] Retrive schema validation error
- Date: 02 Apr 2004 21:10:17 +0200
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]