View Single Post
Re: text format question
Old
  (#2)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: text format question - 14-09-2005

You can do quite a bit of cheap string hacks to read something like that.
For example, at some point in time I needed to parse something like "variable/value".
What I did was do strstr with the "/" character and if it was found I set the character to a null terminator.
So now original_string is the variable and slash_character + 1 is the value.

Or atleast thats how I remember it.
  
Reply With Quote