14 lines
286 B
C
14 lines
286 B
C
|
|
typedef void (*pbuf_func_free_t)(void*);
|
|
|
|
typedef struct {
|
|
int used;
|
|
int allocated;
|
|
int chunksize;
|
|
void** ptr;
|
|
pbuf_func_free_t func_free;
|
|
} pbuf_t;
|
|
|
|
// Add a new item at the end of the pbuf_t.
|
|
extern void pbuf_append(pbuf_t* pbuf, void* ptr);
|
|
|