04-28-2011 03:34 PM
I have a string of data named "dump" with 500 or more bytes of data that will contain within it either (along with other data) the word "circle" or the word "square". (but not both)
I need to pull which ever one of these two words that is in the string "dump" and to create a string called "type" that contains only that word.
Is there an easy way to do this with a line of code or two?
thanks
04-28-2011 03:53 PM
if (FindPattern (dump, 0, -1, "circle", 0, 0) >= 0)
strcpy (typem "circle");
else if (FindPattern (dump, 0, -1, "square", 0, 0) >= 0)
strcpy (type, "square");