String Tokenizer and Sorter

ESE 116 Fall 2007 Homework 3

Files to Submit: strings.c
Due 10:45am Tuesday 11/06 (Late date is always 24 hrs later)

Purposes of this assignment:

To practice and learn:

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[][], or a char**). After the tokenizer terminates on a EOF (end of file) character, you will write a function to sort the tokens alpha-numerically.

There are two functions you will be writing, getWord and sortWords

Important Notes:

Diagram:

Strings Description 


Files: