i want to look for a certain word in a line(stored in a array) and then copy alll the chars following it in another array untill a certain character like' > ' is encountered.What string function i should used?
i want to look for a certain word in a line(stored in a array) and then copy alll the chars following it in another array untill a certain character like' > ' is encountered.What string function i should used?
Lookup strtok on msdn:
http://msdn.microsoft.com/library/de...tok_wcstok.asp
"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers
>>strtok()
Might not be the best function to use, as it changes the contents of the original string.
To find a string within a string, use strstr . To find a character within a string, you can use strchr, but based on your requirements, I'd probably build my own parser. Besides, building it yourself is more educational
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]