Raised This Month: $ Target: $400
 0% 

Help with strbreak


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Infra
Senior Member
Join Date: Aug 2004
Location: California
Old 04-07-2005 , 14:31   Help with strbreak
Reply With Quote #1

What does this function do?

I would like to be able to split this line into the command and the value:

command "value"


Note: This line is inside a file, so I can't use any of the read_arg functions

Is the strbreak function what I'm looking for? Should I use some other function? Or make my own?

Thanks
__________________
--Infra
Infra is offline
Send a message via AIM to Infra
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 04-08-2005 , 12:43  
Reply With Quote #2

from string.inc:
Code:
/* Gets parameters from text. * Example: to split text: "^"This is^" the best year", * call function like this: parse(text,arg1,len1,arg2,len2,arg3,len3,arg4,len4) * and you will get: "This is", "the", "best", "year" * Function returns number of parsed parameters. */ native parse(const text[], ... );
xeroblood is offline
Send a message via MSN to xeroblood
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 04-08-2005 , 12:45  
Reply With Quote #3

Parse is not as good as strbreak, but is used in the same way.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Infra
Senior Member
Join Date: Aug 2004
Location: California
Old 04-08-2005 , 22:53  
Reply With Quote #4

So, I'm correct in assuming that it will work.

Thanks guys...
__________________
--Infra
Infra is offline
Send a message via AIM to Infra
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode