Lines Matching refs:strv
74 char **strv = NULL;
82 strv = zalloc((argc + 1) * sizeof *strv);
86 strv_free(strv);
89 strv[i] = copy;
91 return strv;
129 char **strv = zalloc(strv_len * sizeof *strv);
137 strv_free(strv);
142 strv[idx++] = copy;
147 return strv;
153 * A strv of ["one", "two", "three", NULL] with a joiner of ", " results
156 * An empty strv ([NULL]) returns NULL, same for passing NULL as either
159 * @param strv Input string array
165 strv_join(char **strv, const char *joiner)
167 assert(strv != NULL);
174 if (!strv || !joiner)
177 if (strv[0] == NULL)
180 for (s = strv, count = 0; *s; s++, count++) {
192 for (s = strv; *s; s++) {