From 26c4816e77692f51dfbb19fe3e73f082d1ace1a7 Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Tue, 14 Feb 2017 23:06:09 +0200 Subject: Take bstrlib into use I should've done this from the start. :-) --- src/stringbuf.h | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 src/stringbuf.h (limited to 'src/stringbuf.h') diff --git a/src/stringbuf.h b/src/stringbuf.h deleted file mode 100644 index dda32cd..0000000 --- a/src/stringbuf.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef STRINGBUF_H -#define STRINGBUF_H - -#include - -typedef struct StringBuf StringBuf; - -struct StringBuf -{ - char *data; - int size; - int len; -}; - -int StringBufInit(StringBuf *buf, size_t size); - -int StringBufInitFromCString(StringBuf *buf, const char *s, int len); - -int StringBufInitFromData(StringBuf *buf, const void *ptr, size_t size); - -void StringBufDeinit(StringBuf *buf); - -size_t StringBufAvailable(StringBuf *buf); - -int StringBufGrow(StringBuf *buf, size_t size); - -int StringBufAppendData(StringBuf *buf, const void *ptr, size_t size); - -#define StaticStringBuf(S) { "" S, -1, sizeof(S)-1 } - -#endif -- cgit v1.2.3