1#include <sys/cdefs.h>
| 1#include <sys/cdefs.h>
|
2__FBSDID("$FreeBSD: head/usr.bin/getopt/getopt.c 99112 2002-06-30 05:25:07Z obrien $");
| 2__FBSDID("$FreeBSD: head/usr.bin/getopt/getopt.c 102944 2002-09-04 23:29:10Z dwmalone $");
|
3 4#include <stdio.h> 5#include <stdlib.h> 6#include <unistd.h> 7 8int
| 3 4#include <stdio.h> 5#include <stdlib.h> 6#include <unistd.h> 7 8int
|
9main(argc, argv) 10int argc; 11char *argv[];
| 9main(int argc, char *argv[])
|
12{ 13 int c; 14 int status = 0; 15 16 optind = 2; /* Past the program name and the option letters. */ 17 while ((c = getopt(argc, argv, argv[1])) != -1) 18 switch (c) { 19 case '?':
--- 15 unchanged lines hidden --- | 10{ 11 int c; 12 int status = 0; 13 14 optind = 2; /* Past the program name and the option letters. */ 15 while ((c = getopt(argc, argv, argv[1])) != -1) 16 switch (c) { 17 case '?':
--- 15 unchanged lines hidden --- |