diff options
Diffstat (limited to '')
-rw-r--r-- | strbuf.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; +} |