used in configuration parsers.
return mp_strdup(cfpool, s);
}
+byte *
+cfg_printf(char *fmt, ...)
+{
+ va_list args;
+ va_start(args, fmt);
+ byte *res = mp_vprintf(cfpool, fmt, args);
+ va_end(args);
+ return res;
+}
+
void cf_register(struct cfitem *items)
{
if(items[0].type!=CT_SECTION && items[0].type!=CT_INCOMPLETE_SECTION)
void *cfg_malloc(uns size);
void *cfg_malloc_zero(uns size);
byte *cfg_strdup(byte *s);
+byte *cfg_printf(char *fmt, ...) FORMAT_CHECK(printf,1,2);
/*
* Every module places its configuration setting into some section. Section is