diff options
Diffstat (limited to 'src/common.c')
| -rw-r--r-- | src/common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c index d3b85a5..ab71851 100644 --- a/src/common.c +++ b/src/common.c @@ -68,3 +68,9 @@ int strings_push(StrArray* strings, const char* str) { strings->data[strings->len] = str; return ++strings->len; } + +void strings_pop(StrArray* strings) { + if (strings->len > 0) { + strings->len--; + } +} |
