cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
C strtok_r() for C++
C strtok_r() for C++
Nov 18, 2019 at 7:03am UTC
marhuum
(181)
What/how is C strtok_r() function equivalent in C++?
Nov 18, 2019 at 7:15am UTC
deleted account xyzzy
(5768)
std::strtok
.
You'd do better to use Boost's tokenizer.
https://www.boost.org/doc/libs/1_71_0/libs/tokenizer/doc/index.html
Nov 18, 2019 at 1:04pm UTC
jlb
(4973)
Or better yet use C++ string and some of the standard C++ string functions.
Topic archived. No new replies allowed.