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?
Printable View
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
>>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 ;)