Tokenizer: fun with strings and dynamic memory allocation

Starter code: tokenizer-package.tar
Upload via Moodle as: tokenizer.tar

Goals

Rubric

3 - get_token_count correctness 5 - get_tokens correctness 4 - free_tokens correctness 2 - code quality

Note that "correctness" in this rubric includes "meets all documented specifications". It also means that you need to check return values (especially of malloc) to ensure the integrity of your data structures.

Your assignment

The only file you are required to submit is tokenizer.c. You may include your own main.c and Makefile, but we will use our own main.c and Makefile to do our testing and grading.

A little advice

Have fun!