Hi,
I have a problem with strtok(). I have string in this form 2000;ON_0;1000;ON_2; and when I execute this code:
for ((p=strtok(Seq_String,";"));p;(p= strtok(NULL, ";" ),n++)){
foundThings[n] = p;
Send_String_pc("\xd\xa\xd\xa");
Send_String_pc(foundThings[n]);
}
foundThings[n]='\0';
I get :
2000
ON_0
10
It is C code for microcontroller and this is not in interrupt, it is in endless loop.
Pleas help :)
Thanks
cusa