active Posted June 23, 2016 Report Share Posted June 23, 2016 Hello... We need to parse a text string to search for a single character within the string. This will then be used to trigger an SMS output. The incoming string is variable length with the last part also unknown content. The string header is known format. The terminator, (ETX) is 0xOD 0xOA, (CR LF). We can successfully scan a properly, fully, defined string however we cannot figure out how to simply look for the first character for example find "A" in the start of the string or deal with a variable string. Also once we see an "A" in the start of a string we still need to copy the entire string from the buffer to memory. Any ideas or input is welcome...... Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.