summaryrefslogtreecommitdiff
path: root/findutils/find.c
blob: b3ac1ff5a99a7fd3559f38d55a05d754e9de404f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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);      
}