Mybuffer is char , to analize it I have to use cstring or c++ string functions?

I have read from a file a char * MyBuffer (supose 65536 chars)
I must to use only cstring functions to analize it to tokenize ?(using some conditions) or is it better to transform to string and use the c++ string functions?
I'm a bit confused.
I dont want to do a copy of MyBuffer, so, in case of need :
Can I create a string Pointer to point to MyBufer.?
Thanks

Last edited on
You're probably expected to use strtok().

strtok() modifies the buffer that it's parsing. If you have no need to keep the contents of the buffer intact, you won't need to copy it.
Topic archived. No new replies allowed.