]> jfr.im git - irc/quakenet/newserv.git/blame - lib/stringbuf.h
A4STATS: remove E style escapes and switch to createtable for indices
[irc/quakenet/newserv.git] / lib / stringbuf.h
CommitLineData
ba8a65c4
CP
1#ifndef __STRINGBUF_H
2#define __STRINGBUF_H
3
9985c787
CP
4#include <stdlib.h>
5
ba8a65c4
CP
6typedef struct StringBuf {
7 char *buf;
8 int capacity;
9 int len;
10} StringBuf;
11
12int sbaddchar(StringBuf *buf, char c);
13int sbaddstr(StringBuf *buf, char *c);
0be0b2d0 14int sbterminate(StringBuf *buf);
8b7b4553 15void sbinit(StringBuf *buf, char *c, int capacity);
9985c787 16int sbaddstrlen(StringBuf *buf, char *c, size_t len);
ba8a65c4
CP
17
18#endif