This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Ghost options generated from argp
- From: Wolfgang Formann <wformann at arcor dot de>
- To: Rickard Jonsson <me at rickardjonsson dot se>
- Cc: libc-help at sourceware dot org
- Date: Thu, 29 Sep 2016 09:57:12 +0200
- Subject: Re: Ghost options generated from argp
- Authentication-results: sourceware.org; auth=none
- References: <20160929003859.GA22127@BadderB>
Rickard Jonsson schrieb:
For a code sample, I've posted source code with the problem present in
the following url:
http://www.rickardjonsson.se/files/main.c
NOTE: Will trigger download prompt in most cases.
diff main.c main.c
26,27c26
< { "create-table", 'c', "INPUTFILE", 0, "Create a new diceware table in $DW_HOME/tables/TABLE" },
< { 0, 0, 0, 0, 0 }
---
> { "create-table", 'c', "INPUTFILE", 0, "Create a new diceware table in $DW_HOME/tables/TABLE" }
From /usr/include/arp.h
struct argp
{
/* An array of argp_option structures, terminated by an entry with both
NAME and KEY having a value of 0. */
const struct argp_option *options;
Wolfgang