optind
= 2; /* Past the program name and the option letters. */
while ((c
= getopt(argc
, argv
, argv
[1])) != EOF
)
status
= 1; /* getopt routine gave message */
printf(" -%c %s", c
, optarg
);
for (; optind
< argc
; optind
++)
printf(" %s", argv
[optind
]);