aboutsummaryrefslogblamecommitdiff
path: root/xbuf.h
blob: d317e17868d582ee315d6ca3e1487e2afbb6d3f4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                      

                                            

      
#ifndef XBUF_H_
#define XBUF_H_

struct xbuffer
{
	char *data;
	int end;
	int size;
};

void xbuf_init(struct xbuffer *xbuf);
void xbuf_reset(struct xbuffer *xbuf);
void xbuf_add(struct xbuffer *xbuf, int ch);
int xbuf_pop(struct xbuffer *xbuf);

#endif