ahmad2005
Member level 1
- Joined
- Mar 30, 2011
- Messages
- 40
- Helped
- 2
- Reputation
- 4
- Reaction score
- 2
- Trophy points
- 1,288
- Location
- Mirpur,Dhaka,Bangladesh
- Activity points
- 1,618
I'm a getting string line from a serial output. Now I wanna extract this string and load the substrings into the different variables. How can I do this?
For example, I have a string line something like "=>Data1=10&Data2=20&Data3=30". Now I wanted to load these data values into three variable like variable1=10, variable2=20, and variable3=30.
How could be the best way to do this. Can anyone give me an example code in C ?
For example, I have a string line something like "=>Data1=10&Data2=20&Data3=30". Now I wanted to load these data values into three variable like variable1=10, variable2=20, and variable3=30.
How could be the best way to do this. Can anyone give me an example code in C ?
Last edited: