//----------------------------------------------------------------------
// SPECIFICATION FILE (parse.H)
//
// Exports the "word" type and a function prototype for the Parse()
// function.
//----------------------------------------------------------------------


// This typedef defines a type called "word" that's really an array
// of 20 characters.  You may use this type in your code as well.

typedef char word[20];

//----------------------------------------------------------------------
// Finds and returns the words in a string.  Words can be separated by
// any collection of whitespace characters, punctuation, or digits.
//
// PRE:     "line" is a valid, null-terminated string.  None of the words
//	    in line are more than 19 characters long, "words" is large
//	    enough to hold all of the words found in "line".
//
// POST:    The words found in "line" are left in the array "words" in
//	    the order they were encountered.  The number of words found
//	    is returned via numWords.
//----------------------------------------------------------------------

void Parse(/*in*/char line[], /*out*/ word words[], /*out*/ int & numWords);

