#ifndef _BUF_INCLUDE #define _BUF_INCLUDE #include typedef struct buf_node buf_node; typedef struct buf buf; buf* newbuf(size_t cap); size_t buflen(buf* buffer); char popchrbuf(buf* buffer); char* popstrbuf(buf* buffer, size_t ct); void inschrbuf(buf* buffer, char chr); void insstrbuf(buf* buffer, char* str); char* peekstrbuf(buf* buffer, size_t loc, size_t len); #endif