This file is hopeless outdated & broken and would need some rework to

get it going. Given that we have a decent example in the getopt(3) manpage
and lots of working getopt() examples in our source, this is removed.
This commit is contained in:
hubertf 1999-09-15 12:35:37 +00:00
parent adc55421b4
commit 22a8f1af18
2 changed files with 1 additions and 40 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: mi,v 1.159 1999/09/13 18:45:27 kleink Exp $
# $NetBSD: mi,v 1.160 1999/09/15 12:35:38 hubertf Exp $
./sys
./usr/bin/ar
./usr/bin/as
@ -3533,7 +3533,6 @@
./usr/share/man/man8/pvctxctl.8
./usr/share/man/man8/rtsold.8
./usr/share/man/man8/wiconfig.8
./usr/share/misc/getopt
./usr/share/misc/indent.pro
./usr/share/misc/menu_sys.def
./usr/share/misc/msg_sys.def

View File

@ -1,38 +0,0 @@
/*
* Main/getopt(3) fragment.
*
* $NetBSD: getopt,v 1.5 1997/11/01 06:23:38 lukem Exp $
* @(#)getopt 5.3 (Berkeley) 3/28/94
*/
#include <sys/types.h>
#include <stdlib.h>
void usage __P((void));
int
main(argc, argv)
int argc;
char *argv[];
{
int ch;
while ((ch = getopt(argc, argv, "")) != -1)
switch (ch) {
case '':
break;
case '?':
default:
usage();
}
argc -= optind;
argv += optind;
}
void
usage()
{
(void)fprintf(stderr, "usage: program [-abc] [-f file]\n");
exit(1);
}