Hi
I am trying to use strtok. The problem is that when I dynamically allocate an array of two characters as below, it would seem a bigger array is created.
Code:
input = new char[2]; /*get the length of the string*/
This is what I get from the debugger:
input = 0x00362aa8 "══¤¤¤¤ллллллллю■"

I tried with different sizes and it would seem there are always a certain number of I which correspond to the size with the extra stuff at the end.
The issue is that strtok gives the last token with these garbage values and I can't figure out what to do. Thanks
Amish