Re: how to tokenize string?




The GScanner part of glib might be useful, but it's hard to tell from what
you've said. The other thing that comes to mind is g_strsplit().

gchar** g_strsplit(const gchar *string, const gchar *delimiter,
                   gint max_tokens);

Regards,
   Cody

On Tue, 27 Jul 1999, Jamin Philip Gray wrote:

> 
> what is the best way to to take a char array and tokenize it?  I basically
> want to allow the user to enter a command in a text box and then I want to
> parse it into it's tokens to be put into an array and passed to an exec
> type routine...
> 
> ----------------------------------------------------
> Jamin Philip Gray
> jgray@writeme.com
> http://students.cec.wustl.edu/~jpg2/
> http://www.linuxfreak.com/~jgray/
> 
> No three words have greater power than 'I Love You'
> 
> --unknown 
> 
> 
> -- 
>         FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
>          To unsubscribe: mail gnome-list-request@gnome.org with 
>                        "unsubscribe" as the Subject.
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]