1 |
|
/* getopt_long and getopt_long_only entry points for GNU getopt. |
2 |
|
Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98 |
3 |
< |
Free Software Foundation, Inc. |
3 |
> |
Free Software Foundation, Inc. |
4 |
|
This file is part of the GNU C Library. |
5 |
|
|
6 |
|
The GNU C Library is free software; you can redistribute it and/or |
110 |
|
int this_option_optind = optind ? optind : 1; |
111 |
|
int option_index = 0; |
112 |
|
static struct option long_options[] = |
113 |
< |
{ |
114 |
< |
{"add", 1, 0, 0}, |
115 |
< |
{"append", 0, 0, 0}, |
116 |
< |
{"delete", 1, 0, 0}, |
117 |
< |
{"verbose", 0, 0, 0}, |
118 |
< |
{"create", 0, 0, 0}, |
119 |
< |
{"file", 1, 0, 0}, |
120 |
< |
{0, 0, 0, 0} |
121 |
< |
}; |
113 |
> |
{ |
114 |
> |
{"add", 1, 0, 0}, |
115 |
> |
{"append", 0, 0, 0}, |
116 |
> |
{"delete", 1, 0, 0}, |
117 |
> |
{"verbose", 0, 0, 0}, |
118 |
> |
{"create", 0, 0, 0}, |
119 |
> |
{"file", 1, 0, 0}, |
120 |
> |
{0, 0, 0, 0} |
121 |
> |
}; |
122 |
|
|
123 |
|
c = getopt_long (argc, argv, "abc:d:0123456789", |
124 |
|
long_options, &option_index); |