#include <stdio.h>
#include <ctype.h>
#include <string.h>
+#include <common/common.h>
#include "ini.h"
}
/* See documentation in header file. */
+LTTNG_HIDDEN
int ini_parse_file(FILE* file, ini_entry_handler handler, void* user)
{
/* Uses a fair bit of stack (use heap instead if you need to) */
int error = 0;
#if !INI_USE_STACK
- line = (char*)malloc(INI_MAX_LINE);
+ line = (char*)zmalloc(INI_MAX_LINE);
if (!line) {
return -2;
}
}
/* See documentation in header file. */
+LTTNG_HIDDEN
int ini_parse(const char* filename, ini_entry_handler handler, void* user)
{
FILE* file;