A simple tokenizer function made in C