#define new0(type) alloc0(sizeof(type))
+/* Types */
+typedef struct {
+ void *data;
+ int len;
+ int max;
+} buf_t;
+
/* Debug functions */
void util_init(void);
/* Memory functions */
void *alloc0(int size);
+void append(buf_t *buf, const void *data, int len);
+void release(buf_t *buf);
/* File functions */
char *read_file(const char *path, int *len);