home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_09_06
/
9n06076b
< prev
next >
Wrap
Text File
|
1990-03-01
|
371b
|
17 lines
Listing 2: New getopt() Command Line Processing
================================================
while ((option = getopt (argc, argv, optstring)) != NONOPT) ||
(optarg != NULL)) {
switch (option) {
case 'a': ...
case 'b': ...
...
case '?': ... error ...
case NONOPT: ... process optarg ...
default: break ;
}
}