summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/strvec.c8
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)
{