Tokenizer:
The ESE String Tokenizer & Sorter

Files:

Purposes of this assignment:

To practice and learn:

Important Notes:

Overview:

When writing pieces of software that deal with user input, a tokenizer is a function designed to take user input and cut it up into pieces in order to be parsed. A string tokenizer literally cuts a input string up into smaller strings called "tokens", which can then be parsed as commands.

In this assignment you will be creating a tokenizer. The tokenizer will read input from STDIN using getchar(). While reading, it will look for spaces and newlines and create new "token" words based on their separation with this whitespace. These token words will be stored in an array of strings (char[][]). After the tokenizer terminates on a EOF (end of file) character, you will write a function to sort the tokens alpha-numerically and delete duplicates.

There are two functions you will be writing, get_word() and sort_and_delete_duplicates()

Important Notes:

Diagram: