aboutsummaryrefslogtreecommitdiff
path: root/sb.h
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-03-27 00:42:31 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-03-28 13:57:14 -0400
commitf1638f63a7e0ffe854ec6bb940c4ed1e4a175215 (patch)
tree2a3fe5c7753d2f781302057f8cd7d3f703107eb5 /sb.h
initial commit
Diffstat (limited to 'sb.h')
-rw-r--r--sb.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sb.h b/sb.h
new file mode 100644
index 0000000..e3785fd
--- /dev/null
+++ b/sb.h
@@ -0,0 +1,11 @@
+#ifndef _SB_INCLUDE
+#define _SB_INCLUDE
+
+typedef struct node node;
+node* newsb(size_t cap);
+node* extendsb(node* tail);
+node* appendsb(node* tail, const char* str);
+char* tostr(node* head);
+int lensb(node* head);
+
+#endif