On Tue, Jun 27, 2006 at 09:30:00PM +0000, cheusov@tut.by wrote:
> struct option longopts [] = {
> {"foo", no_argument, 0, 'f'},
> };
Quoting from getopt_long(3):
The last element of the long_options array has to be filled with zeroes
(see EXAMPLES section).
Martin