getopt.c (0ab2a7ae85e2d50dcafed917b86006b751783ca3) getopt.c (62f882d620bdfa783c01626012d69f468ba34e28)
1/* $FreeBSD$ */
2
1#include <stdio.h>
3#include <stdio.h>
4#include <unistd.h>
2
3main(argc, argv)
4int argc;
5char *argv[];
6{
5
6main(argc, argv)
7int argc;
8char *argv[];
9{
7 extern int optind;
8 extern char *optarg;
9 int c;
10 int status = 0;
11
12 optind = 2; /* Past the program name and the option letters. */
13 while ((c = getopt(argc, argv, argv[1])) != -1)
14 switch (c) {
15 case '?':
16 status = 1; /* getopt routine gave message */

--- 14 unchanged lines hidden ---
10 int c;
11 int status = 0;
12
13 optind = 2; /* Past the program name and the option letters. */
14 while ((c = getopt(argc, argv, argv[1])) != -1)
15 switch (c) {
16 case '?':
17 status = 1; /* getopt routine gave message */

--- 14 unchanged lines hidden ---