--- In [email protected], Satya Prasad <satya_prakash_pra...@...>
wrote:
>
> char *choices[][31] = {
> {"-install|i","Install the RPM package (required)"},
I don't think this does what you want it to do, and isn't logical -
you want an array of choices (and each choice consists of 2 strings),
not a 2 dimensional array of strings.
I suggest using a structure, eg.
typedef struct
{
const char *abbr;
const char *full;
} Choice_t;
const Choice_t choices[] =
{
{"-install|i","Install the RPM package (required)"},
...
printf("Choice 0: %s %s\n", choices[0].abbr, choices[0].full);
John