As long as the characters will not include “
;” you can use that as a marker to grab your information. One way to do this would be to find the index of that character and then grab all the characters after the “
K” up until that index, so that it works even with longer or shorter strings.
Here’s a quick example that should do what you’re looking for:
// Find the index of the ending character ';'
end = FindCharacterInString(';', 7, MyString);
// Save the substring from index 7 to ';' into "info"
GetSubstring(MyString, 7, end-7, info);
Also, this is assuming your “
@253ACK” will not change – is that the case? If that is going to get shorter or longer at any point then you’ll need to add an extra step.