common/strbuf: a little cleanup in rev
This commit is contained in:
parent
92477a7261
commit
1cf6ea1571
2 changed files with 12 additions and 11 deletions
|
|
@ -1,10 +1,13 @@
|
|||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <malloc.h>
|
||||
#include "../src/common/strbuf.h"
|
||||
|
||||
void print_strbuf(strbuf_t *s) {
|
||||
|
||||
assert(s->len = strlen(s->buf));
|
||||
|
||||
printf("block: %i, len: %i |%s|\n", s->alloc_size, s->len, s->buf);
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue