diff options
-rw-r--r-- | src/prototype/getopt.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/prototype/getopt.c b/src/prototype/getopt.c deleted file mode 100644 index 6c47c4fea0..0000000000 --- a/src/prototype/getopt.c +++ /dev/null @@ -1,31 +0,0 @@ -/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ - -extern int optind; -extern char *optarg; - -main(argc, argv) -int argc; -char **argv; -{ - int c; - int errflg = 0; - - <<<other globals here>>>; - - while ((c = getopt(argc, argv, "<<<>>>")) != -1) { - switch (c) { - <<<add cases for arguments here>>>; - case '?': - default: - errflg++; - break; - } - } - if (errflg) { - fprintf(stderr, "Usage: %s <<<args>>>", argv[0]); - exit(2); - } - for (; optind < argc; optind++) { - <<<process arg optind>>>; - } -} |