String Tokenizer implemented in C