#include <stdio.h>

/* fgetword: get a single word from file called dataloc.
   Maximum word length n */
char *fgetword(FILE *datafile,     /* Pointer to an open file */
	       int n,              /* Maximum word length permitted.
				      Returns first n characters if 
				      word is longer than n. */
	       char word[]         /* Place to put the word */
	       );

/* fgetword returns NULL when EOF is reached. */

/* Example: from file containing "  hello \n\tworld ! ", 
   itterative use of fgetword would return:
   1) \0
   2) hello\0
   3) world\0
   4) !\0
   5) NULL
*/
