diff options
Diffstat (limited to 'sb.c')
-rw-r--r-- | sb.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -15,7 +15,7 @@ struct sbnode { sbnode* next; }; -sbnode* newsbnode(sbnode* prev, size_t sz){ +static sbnode* newsbnode(sbnode* prev, size_t sz){ sbnode* node = malloc(sizeof(sbnode)); // Allocate node->str = malloc(sizeof(char)*(sz+1)); node->str[sz] = 0; node->next = NULL; // Init @@ -31,7 +31,7 @@ sb* newsb(size_t sz){ return out; } -void extendsb(sb* buf){ +static void extendsb(sb* buf){ buf->sz *= 2; buf->loc = 0; buf->tail = newsbnode(buf->tail, buf->sz); |