freebsd-nq/contrib/less/xbuf.h
Xin LI 95270f73ba MFV: less v608
Relnotes:	yes
MFC after:	2 weeks
2022-09-05 22:52:39 -07:00

17 lines
254 B
C

#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