kinghamza How do I cheat?
Reputation: 0
Joined: 14 Aug 2009 Posts: 5
|
Posted: Fri Aug 14, 2009 9:42 am Post subject: [C] help w/ string manipulation |
|
|
in C, not C++. I need an efficient way to excerpt pairs of data from a packet, the Nicknames and the corresponding UserIDs..
| Code: |
char *packet = "<iq xmlns='jabber:component:accept' to='tazbaby'
type='result' amaz-protocol='chat' from='conference1'><chatuser
nick='Mr. McLovin' userid='mclovin' initial='yes' role='participant'
room='Room 45'/><chatuser nick='VengeFuL' userid='vengeful101'
initial='yes' role='participant' </iq>";
|
i've been playing around on how to achieve this but i tend to end up in a deeply nested code which i find undesirably inefficient and slow..
The image below is an example of what i want to achieve. Basically, i want to store the Nicks and IDs in a listview (drawn in mspaint):
| Description: |
|
| Filesize: |
7.89 KB |
| Viewed: |
1871 Time(s) |

|
|
|