Return to getopt.c CVS log | Up to [local] / src / usr.bin / getopt |
version 1.2, 1996/06/26 05:33:45 | version 1.3, 1997/01/15 23:42:32 | ||
---|---|---|---|
|
|
||
int status = 0; | int status = 0; | ||
optind = 2; /* Past the program name and the option letters. */ | optind = 2; /* Past the program name and the option letters. */ | ||
while ((c = getopt(argc, argv, argv[1])) != EOF) | while ((c = getopt(argc, argv, argv[1])) != -1) | ||
switch (c) { | switch (c) { | ||
case '?': | case '?': | ||
status = 1; /* getopt routine gave message */ | status = 1; /* getopt routine gave message */ |