Posting from the Informix-list
Posted in 1999
Topics: General Discussion
Hi I need a "C" parsing function to parse a given string delimeted with pipe character. if any one having the generic function means , mail me thanks in advance swami _______________________________________________________________ Get Free Email and Do More On The Web. Visit http://www.msn.com
swami subramanian wrote: > I need a "C" parsing function to parse a given string delimeted > with pipe character. if any one having the generic function means, > mail me It's not fully generic, but you could look at the code in SQLCMD, available from the IIUG archives. -- Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net) Guardian of DBD::Informix v0.60 -- see http://www.perl.com/CPAN #include <disclaimer.h>
Swami, I did not see your original post, but I have a set of functions that I have used in the past. They are basically a replacement for strtok that properly handles NULL fields, or multiple consecutive delimiters. Contact me by email if you want them. Art S. Kagel Jonathan Leffler wrote: > > swami subramanian wrote: > > I need a "C" parsing function to parse a given string delimeted > > with pipe character. if any one having the generic function means, > > mail me > > It's not fully generic, but you could look at the code in SQLCMD, > available from the IIUG archives. > > -- > Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net) > Guardian of DBD::Informix v0.60 -- see http://www.perl.com/CPAN > #include <disclaimer.h>