Re: how to tokenize string?



On 27 Jul 1999 14:02:02 -0400, Jamin Philip Gray <jgray@writeme.com> 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...

Instead, why not just let the shell do the parsing? gnome_execute_shell()
:)

Anyways, as far as splitting on spaces, g_strsplit() is sort of what you
want, but it can't split on a regex. You may just have to do it by hand if
gnome_execute_shell() isn't what you need.
-- Elliot



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