#include <assert.h>
#include <ctype.h>
#include <stdio.h>
#include "xrt.h"
int getword(char *word, size_t lim);
#define MAXWORD 100
int main()
{
char word[MAXWORD];
unsigned lineno = 1;
while (getword(word, MAXWORD) != EOF)
if (isalpha(word[0]))
xrt_add(word, lineno);
else if (word[0] == '\n')
++lineno;
xrt_print();
xrt_destroy();
return 0;
}
// End of File