aboutsummaryrefslogtreecommitdiff
path: root/include/util.h
blob: c5aa0ab106e4d257f9d9e3ec7dfd606e20ffcf35 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <stdio.h>

#include <cjson/cJSON.h>

#define print_err(fmt, ...)                                                    \
	fprintf(stderr, "[%s:%d] " fmt "\n", __FILE__, __LINE__, ##__VA_ARGS__)

int json_streaming_read(FILE *stream, cJSON **json);
int vpopen(FILE **stream, const char *file, char *const argv[]);