RE: How to split a C string by a string?

2008-09-18 Thread Murray Taylor
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Giorgos Keramidas Sent: Thursday, 18 September 2008 1:49 AM To: [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Subject: Re: How to split a C string by a string? On Wed, 17 Sep 2008 06:32:56

How to split a C string by a string?

2008-09-17 Thread Unga
Hi all I'm writing an C application on FreeBSD 7+. I need to split a string by another string (ie. the delimiter is xxx) similar to strtok split a string by a single char. Is there a standard function or is there a FreeBSD functions for this? Many thanks in advance. Kind regards Unga

Re: How to split a C string by a string?

2008-09-17 Thread Giorgos Keramidas
On Wed, 17 Sep 2008 00:45:46 -0700 (PDT), Unga [EMAIL PROTECTED] wrote: Hi all I'm writing an C application on FreeBSD 7+. I need to split a string by another string (ie. the delimiter is xxx) similar to strtok split a string by a single char. Is there a standard function or is there a

Re: How to split a C string by a string?

2008-09-17 Thread Unga
--- On Wed, 9/17/08, Giorgos Keramidas [EMAIL PROTECTED] wrote: From: Giorgos Keramidas [EMAIL PROTECTED] Subject: Re: How to split a C string by a string? To: [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Date: Wednesday, September 17, 2008, 6:17 PM On Wed, 17 Sep 2008 00:45:46 -0700

Re: How to split a C string by a string?

2008-09-17 Thread Robert Huff
Unga writes: Thank you very much for the reply. That is, there is no existing split function. Not in standard C. There may be in third party libraries; however linking against, oh, GTK just to get the one function seems ... excessive. Robert Huff

Re: How to split a C string by a string?

2008-09-17 Thread Giorgos Keramidas
On Wed, 17 Sep 2008 06:32:56 -0700 (PDT), Unga [EMAIL PROTECTED] wrote: --- On Wed, 9/17/08, Giorgos Keramidas [EMAIL PROTECTED] wrote: From: Giorgos Keramidas [EMAIL PROTECTED] Subject: Re: How to split a C string by a string? To: [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Date