Be sure to put your name and ID number in the body of your email message. Also tell me any optional parts of the assignment that you have completed in your email message.
Optional: Recognize all I/O redirection operators as separate tokens.
Optional: (hard) Treat quoted strings as single tokens. This can include single quotes and backslashes as well as double quotes.
Optional: Use malloc() to allocate memory for the pointers in the argument list dynamically instead of putting a fixed limit on the number of allowed arguments. Don't forget to free (free()) each list.
Optional: Put all the information about each command,
including I/O redirection information. into a struct
like this one:
struct cmd_info { char *cmd_name; char *argv[10]; char *stdin[2]; char *stdout[2]; char *stderr[2]; char **envp; };Whether you build the complete structure or just the argument list, be sure it is correct either by printing it out or by examining it using gdb.