aboutsummaryrefslogtreecommitdiff
path: root/lib/bob/u8strinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bob/u8strinit.c')
-rw-r--r--lib/bob/u8strinit.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/bob/u8strinit.c b/lib/bob/u8strinit.c
deleted file mode 100644
index 60423c1..0000000
--- a/lib/bob/u8strinit.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#include <stdlib.h>
-
-#include "bob.h"
-
-struct u8str *
-u8strinit(struct u8str *b, size_t n)
-{
- if (n) {
- if (!(b->p = malloc(n)))
- return nullptr;
- } else
- b->p = nullptr;
- b->len = 0;
- b->cap = n;
- return b;
-}