busybox/find.c

24 lines
401 B
C
Raw Normal View History

1999-10-05 21:54:54 +05:30
#include "internal.h"
#include <errno.h>
#include <stdio.h>
const char find_usage[] = "find dir [pattern]\n"
"\n"
"\tFind files.\n";
extern int
find_main(struct FileInfo * i, int argc, char * * argv)
{
i->recursive=1;
i->processDirectoriesAfterTheirContents=1;
return monadic_main(i, argc, argv);
}
extern int
find_fn(const struct FileInfo * i)
{
printf("%s\n",i->source);
return(0);
}