/* Name: arg.h Purpose: provides support for processing command-line arguments Author: Bill Slough */ #ifndef ARG_H #define ARG_H struct args_t{ char option; /* 'c', 'd', 'u', or 'n' (none) */ char *inputFile; /* filename provided on command line */ }; /* Process the arguments from a given command line, checking for errors, summarizing the results in an args_t structure */ void process_args(int argc, char *argv[ ], struct args_t *argument); /* Tell the user how to use this program */ void display_usage(char *pname); #endif