]> jfr.im git - irc/quakenet/newserv.git/blobdiff - lib/stringbuf.h
build: Clean up workspaces code a bit.
[irc/quakenet/newserv.git] / lib / stringbuf.h
index b7b39763c1c600ba176395e1addfe8ef324e96a2..28158a21939201de8cd37ea02fba5c444f90a00f 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __STRINGBUF_H
 #define __STRINGBUF_H
 
+#include <stdlib.h>
+
 typedef struct StringBuf {
   char *buf;
   int capacity;
@@ -9,5 +11,8 @@ typedef struct StringBuf {
 
 int sbaddchar(StringBuf *buf, char c);
 int sbaddstr(StringBuf *buf, char *c);
+int sbterminate(StringBuf *buf);
+void sbinit(StringBuf *buf, char *c, int capacity);
+int sbaddstrlen(StringBuf *buf, char *c, size_t len);
 
 #endif