aboutsummaryrefslogtreecommitdiff
path: root/strbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'strbuf.c')
-rw-r--r--strbuf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/strbuf.c b/strbuf.c
index 8cc624e5..7193b134 100644
--- a/strbuf.c
+++ b/strbuf.c
@@ -81,7 +81,7 @@ int strbuf_cmp(strbuf* a, strbuf* b) {
b == NULL || b->alloc == 0)
{
ERR("a or b not alloced");
- return -1;
+ // return -1;
}
return strncmp(a->mem, b->mem, a->len);
@@ -132,3 +132,7 @@ strbuf* RESOLVE(strbuf)(strbuf* dest, strbuf* new) {
FMT_F(strbuf) {
return sprintf(buf, "%s", this->mem);
}
+
+int SIZE(strbuf)(strbuf* this) {
+ return this->len;
+}