aboutsummaryrefslogtreecommitdiff
path: root/fbuf.h
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2018-10-25 12:08:54 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2018-10-25 12:08:54 -0400
commitb9899c6cbe2f694c9db36e9d4e15c532d10b546f (patch)
tree248564d6bd22dd6f11459a51f73a144ae91756fc /fbuf.h
parentd416a80324225d0c64c5021e74773a2e768de73a (diff)
downloadlibctemplates-b9899c6cbe2f694c9db36e9d4e15c532d10b546f.tar.gz
libctemplates-b9899c6cbe2f694c9db36e9d4e15c532d10b546f.tar.bz2
libctemplates-b9899c6cbe2f694c9db36e9d4e15c532d10b546f.zip
Started refactoring code
Added a src/ and build/ directory Added a include/ directory Included file is smaller
Diffstat (limited to 'fbuf.h')
-rw-r--r--fbuf.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/fbuf.h b/fbuf.h
deleted file mode 100644
index 212979b..0000000
--- a/fbuf.h
+++ /dev/null
@@ -1,29 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-
-/*Oh boy, CS101 linked lists*/
-struct LLNode{
- size_t length;
- char* data;
- struct LLNode* next;
-};
-
-struct TMPL_buf{
- size_t total_len;
- struct LLNode* head;
- struct LLNode* tail;
-};
-
-void bputs(struct TMPL_buf* b, char* s);
-void bputsn(struct TMPL_buf* b, char* s, size_t size);
-
-void bputc(struct TMPL_buf* b, char s);
-
-struct TMPL_buf* alloc_tmpl_buf(void);
-
-void free_tmpl_buf(struct TMPL_buf* b);
-
-char* bstringify(struct TMPL_buf* b, size_t* size);
-
-void bprint(struct TMPL_buf* b);