How to use strtok

Hello, please help me...

I have a problem with strtok

char a[5] = "1.2";

I get number "1" use printf("%s", strtok(a, "."));
but how to get number "2" with strtok ?
check the example http://www.cplusplus.com/reference/clibrary/cstring/strtok/
Keep in mind that the original string is destroyed. What are you trying to accomplish?
Topic archived. No new replies allowed.