findprog
int findprog(char *, char *, int, int);
if (findprog(argv[n], path, progmode, allmatches) == 0)