Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Apr 2002 09:08:31 -0500
From:      mpd <mpd6334@cs.rit.edu>
To:        Ilia Chipitsine <ilia@cgu.chel.su>
Cc:        questions@freebsd.org
Subject:   Re: Perl thing
Message-ID:  <20020405090831.A93228@rochester.rr.com>
In-Reply-To: <Pine.BSF.4.10.10204051953340.13313-100000@jane.poka.net>; from ilia@cgu.chel.su on Fri, Apr 05, 2002 at 07:56:53PM %2B0600
References:  <Pine.BSF.4.10.10204051953340.13313-100000@jane.poka.net>

next in thread | previous in thread | raw e-mail | index | archive | help
 cc: to hackers removed.

On Fri, Apr 05, 2002 at 07:56:53PM +0600, Ilia Chipitsine wrote:
> Dear Sirs,
> 
> Perl has very useful "split" function, it "split"s a string according
> arbitrary regular expression. Is there's such a C function ?
> I'm moving few programs from Perl to C.
> 
> Regards, (Nailucsie pozelanij)
> Ilia Chipitsine (Il%j Sipicin)
> 
> 

There's no standard function in C that will do this.
Writing one to do so is trivial, though.

There is a non-standard function called bufsplit()
that would probably do what you want, but it's
not part of the FreeBSD C library.

mike
-- 
___________________________________________________________
 
"THAT IS THE PRICE OF LOVE"
	- Pokey the Penguin from "THE PRICE OF LOVE"

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020405090831.A93228>