blob: a796c9217554e03b2c99a0fe66f1ce6e393af351 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef _BUF_INCLUDE
#define _BUF_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
|