Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C] help w/ string manipulation

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
kinghamza
How do I cheat?
Reputation: 0

Joined: 14 Aug 2009
Posts: 5

PostPosted: Fri Aug 14, 2009 9:42 am    Post subject: [C] help w/ string manipulation Reply with quote

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):



listvw.JPG
 Description:
 Filesize:  7.89 KB
 Viewed:  1871 Time(s)

listvw.JPG


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites