blob: b3ac1ff5a99a7fd3559f38d55a05d754e9de404f [file] [log] [blame]
Eric Andersencc8ed391999-10-05 16:24:54 +00001#include "internal.h"
2#include <errno.h>
3#include <stdio.h>
4
5const char find_usage[] = "find dir [pattern]\n"
6"\n"
7"\tFind files.\n";
8
9extern int
10find_main(struct FileInfo * i, int argc, char * * argv)
11{
12 i->recursive=1;
13 i->processDirectoriesAfterTheirContents=1;
14 return monadic_main(i, argc, argv);
15}
16
17extern int
18find_fn(const struct FileInfo * i)
19{
20 printf("%s\n",i->source);
21
22 return(0);
23}