From 83c5636c208eeffb20be90e67836233783d4c85d Mon Sep 17 00:00:00 2001 From: wrmr Date: Sun, 3 Nov 2024 13:40:11 -0500 Subject: buf_grow clarification comment --- buf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'buf.c') diff --git a/buf.c b/buf.c index 1f0e2b3..8460631 100644 --- a/buf.c +++ b/buf.c @@ -12,6 +12,7 @@ void buf_init(buf_t *b, size_t n) { b->sz = 0; } +/* does NOT change sz! just makes room */ void buf_grow(buf_t *b, size_t n) { size_t sz = b->sz + n; size_t c = b->cap; -- cgit 1.4.1-2-gfad0