5 * This material, written by Henry Spencer, was released by him
6 * into the public domain and is thus not subject to any copyright.
14 main(int argc
, char *argv
[])
19 optind
= 2; /* Past the program name and the option letters. */
20 while ((c
= getopt(argc
, argv
, argv
[1])) != -1)
23 status
= 1; /* getopt routine gave message */
27 printf(" -%c %s", c
, optarg
);
33 for (; optind
< argc
; optind
++)
34 printf(" %s", argv
[optind
]);