cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How to use strtok
How to use strtok
Jan 24, 2011 at 6:23am UTC
Icenel
(31)
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 ?
Jan 24, 2011 at 7:16am UTC
ne555
(10692)
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.