Lines Matching refs:args
181 char **args, **cpp;
183 int argc = 1; /* 1, args[0]:=path, args[1]:=null */
194 for(cpp = execArgs; *cpp != 0; cpp++, argc++); /* count args. */
195 if (additionalArgs != 0) /* add on the add-on args. */
198 args = (char **) Xmalloc(sizeof(char *) * (argc+1));
199 if (args == 0)
201 args[argc] = 0; /* cap end of args */
202 args[i++] = execObj;
204 for(cpp = additionalArgs; *cpp != 0; cpp++, i++) args[i] = *cpp;
206 for(cpp = execArgs; *cpp != 0; cpp++, i++) args[i] = *cpp;
217 if (execvp(args[0], args) < 0) { /* Error!! */
235 if (args != 0) (void) XFree(args);