diff options
author | wrmr | 2024-11-03 13:40:11 -0500 |
---|---|---|
committer | wrmr | 2024-11-03 13:40:11 -0500 |
commit | 83c5636c208eeffb20be90e67836233783d4c85d (patch) | |
tree | 3adb3e949d9e144ef080a4d58cb204faf4b3f740 /buf.c | |
parent | d16f78195865c200481123caaa91e52152ffdc41 (diff) |
buf_grow clarification comment
Diffstat (limited to 'buf.c')
-rw-r--r-- | buf.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |