Home | History | Annotate | Download | only in dropbear

Lines Matching full:args

140 addargs(arglist *args, char *fmt, ...)
153 nalloc = args->nalloc;
154 if (args->list == NULL) {
156 args->num = 0;
157 } else if (args->num+2 >= nalloc)
160 args->list = xrealloc(args->list, nalloc * sizeof(char *));
161 args->nalloc = nalloc;
162 args->list[args->num++] = cp;
163 args->list[args->num] = NULL;
167 replacearg(arglist *args, u_int which, char *fmt, ...)
179 if (which >= args->num)
181 which, args->num);
182 xfree(args->list[which]);
183 args->list[which] = cp;
187 freeargs(arglist *args)
191 if (args->list != NULL) {
192 for (i = 0; i < args->num; i++)
193 xfree(args->list[i]);
194 xfree(args->list);
195 args->nalloc = args->num = 0;
196 args->list = NULL;
221 va_list args;
222 va_start(args, fmt);
223 vfprintf(stderr, fmt, args);
224 va_end(args);