Quantcast
Channel: Extracting a specific substring in C - Code Review Stack Exchange
Browsing latest articles
Browse All 4 View Live

Answer by Toby Speight for Extracting a specific substring in C

Although it's not mentioned in the question, it appears that you're receiving NMEA 0183 sentences. There are libraries (including free, open-source ones) for parsing such inputs, so I'm surprised to...

View Article


Answer by David C. Rankin for Extracting a specific substring in C

While you have a good presentation of your question, it is still a bit unclear exactly what you are looking to extract between $GPTXT and '$' given that you have the "\r\n" prior to the terminating...

View Article


Answer by Lundin for Extracting a specific substring in C

As far as performance goes, there isn't much you can improve without doing manual optimization tricks. Such things are already implemented in the library functions though.The main issue I see here is...

View Article

Extracting a specific substring in C

I have a string like this:char buffer[] = "blablabla$GPTXT->SOME CODES HERE<-\r\n$GPRMCblablabla";It is sent from an external device and changes every 1 second.The string length is over 1000...

View Article
Browsing latest articles
Browse All 4 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>