/* $OpenBSD: exclude.c,v 1.1 1997/09/15 06:01:52 downsj Exp $ */ /* * 9-Dec-93 R.-D. Marzusch, marzusch@odiehh.hanse.de: * added 'exclude' option (-x) to specify pathnames NOT to be included in * CD image. */ static char rcsid[] ="$From: exclude.c,v 1.2 1997/02/23 16:12:34 eric Rel $"; #include #ifndef VMS #ifdef HAVE_MALLOC_H #include #else #include #endif #endif #include /* this allows for 1000 entries to be excluded ... */ #define MAXEXCL 1000 static char * excl[MAXEXCL]; void exclude(fn) char * fn; { register int i; for (i=0; excl[i] && i excluded filenmae */ } } return 0; /* not found -> not excluded */ }