Add array framework that works with any type.
[apps/pfixtools.git] / common / buffer.h
index 24bc590..d044114 100644 (file)
 #include <stdarg.h>
 #include "mem.h"
 #include "str.h"
+#include "array.h"
 
-typedef struct buffer_t {
-    char *data;
-    ssize_t len;
-    ssize_t size;
-} buffer_t;
+typedef char_array_t buffer_t;
 
 #define BUFFER_INIT {NULL, 0, 0}