Hi all I have a struct defined as the following:
Code:
typedef struct command_struct {
      char name[BUFFSIZE];
      char *argv[ARRAYSIZE];
      int argc;
} command;
How do I go about accessing the *argv[ARRAYSIZE] data elements if I had a struct called command *cmds[ARRAYSIZE]?

Code:
void parse (char cmdline[], command *cmds)
{
  /* create a pointer to the command line */
  char * cmdline_ptr;
  cmdline_ptr = cmdline;

  char * cmd_name;
  cmd_name = cmds->name;

  char * cmd_argv;
  cmd_argv = cmds->name->argv;
/* ????? */
}
Thanks in advance.