Files
recorder/util.h
2015-08-25 18:53:37 +02:00

18 lines
373 B
C

#ifndef _UTIL_H_INCL_
# define _UTIL_H_INCL_
#ifndef TRUE
# define TRUE (1)
# define FALSE (0)
#endif
#include <time.h>
#include "json.h"
const char *isotime(time_t t);
char *slurp_file(char *filename, int fold_newlines);
int json_copy_to_object(JsonNode * obj, JsonNode * object_or_array, int clobber);
int json_copy_from_file(JsonNode * obj, char *filename);
#endif