/* * ======================================================= * parser.h -- header declarations for the parser routines * ======================================================= */ #ifndef _PARSER_H_ #define _PARSER_H_ /* constants */ enum { Separator = ' ', MaxString = 100 }; /* declarations */ int wordLength( const char * cpStart ); /* return length of next word */ char ** parseString( char * cpCmdLine ); /* parse a string, construct table */ void freeTable( char ** cppTable ); /* free memory of a parsed table */ void error( char * cpMessage, int iLine );/* print error and die */ char * skipWhiteSpace( char * cpStart ); /* skip white space in a string */ void showTable( char ** cppTable ); /* print the table to the screen */ #endif