diff options
Diffstat (limited to 'src/strvec.c')
| -rw-r--r-- | src/strvec.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/strvec.c b/src/strvec.c index 13699a3..f6432b9 100644 --- a/src/strvec.c +++ b/src/strvec.c @@ -166,6 +166,14 @@ strvec_stra(struct strvec *strvec) return strvec->vec.data; } +const char ** +strvec_at(struct strvec *strvec, size_t index) +{ + LIBSTRVEC_ABORT_ON_ARGS(!strvec); + + return dvec_at(&strvec->vec, index); +} + size_t strvec_len(struct strvec *strvec) { |
