-/*
- * find_getpaths --
- * remove the path strings from the command line and returns them in
- * another array. The find syntax assumes all command arguments up
- * to the first one beginning with a '-', '(' or '!' are pathnames.
- */
-char **
-find_getpaths(argvp)
- char ***argvp;
-{
- register char **argv;
- char **start;
-
- /*
- * find first '-', '(' or '!' to delimit paths; if no paths, it's
- * an error. Shift the array back one at the same time, creating
- * a separate array of pathnames.
- */
- for (argv = *argvp + 1;; ++argv) {
- argv[-1] = argv[0];
- if (!*argv || **argv == '-' || **argv == '!' || **argv == '(')
- break;
- }
-
- if (argv == *argvp + 1)
- usage();
-
- argv[-1] = NULL;
-
- start = *argvp; /* save beginning of path array */
- *argvp = argv; /* move argv value */
- return(start); /* return path array */
-}
-