c++ - Is strtok() safe to use -
this question has answer here:
- strtok function thread safety 2 answers
i reading lot negative things strtok()
, obsolete, not thread safe, etc.
so truth, can use strtok()
? , thread safe?
note: using visual c++.
you can use it, it's part of standard library.
it uses internal storage shared across users of function, no it's not thread-safe.
it modifies string hand it, quite scary.
i not recommend using it, in cases.
Comments
Post a Comment