Split string

Game Editor comments and discussion.

Split string

Postby Clokio » Sat Jun 04, 2011 10:51 pm

I need to split a string
game/editor
and peut game into a variable
editor into another.
Or in array.

Thanks :mrgreen:
Clokio
 
Posts: 229
Joined: Tue May 17, 2011 2:18 pm
Score: 32 Give a positive score

Re: Split string

Postby Hblade » Sun Jun 05, 2011 4:10 am

I would like to try and help but I have no idea what you mean :'(
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Split string

Postby Clokio » Sun Jun 05, 2011 8:36 am

Thanks.
Ex: I have the following string "abc/efg"
and I want to ask GE take what is at left and right of the / and put it into variable.

So I would have abc in a variable and efg

It's more C programmation question than GE I guess.

I found this, it talk about token and pointers. I have no idea what they are.
http://pubs.opengroup.org/onlinepubs/009695399/functions/strtok.html
Clokio
 
Posts: 229
Joined: Tue May 17, 2011 2:18 pm
Score: 32 Give a positive score

Re: Split string

Postby Clokio » Sun Jun 05, 2011 9:14 am

guess I don't need this cause C have multi-dimention array. :lol:
Clokio
 
Posts: 229
Joined: Tue May 17, 2011 2:18 pm
Score: 32 Give a positive score

Re: Split string

Postby Hblade » Mon Jun 06, 2011 3:00 am

I wouldn't know anything about that xD
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest