This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Ghost options generated from argp


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]