From owner-freebsd-questions Fri Apr 5 7:52:46 2002 Delivered-To: freebsd-questions@freebsd.org Received: from icc.cgu.chel.su (gw.csu.ru [195.54.14.5]) by hub.freebsd.org (Postfix) with ESMTP id 5E76137B482 for ; Fri, 5 Apr 2002 07:52:33 -0800 (PST) Received: from mail.cgu.chel.su (mail.cgu.chel.su [195.54.14.68]) by icc.cgu.chel.su (8.11.6/8.11.6) with ESMTP id g35FHXt75685 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified NO); Fri, 5 Apr 2002 21:17:33 +0600 (YEKST) (envelope-from ilia@cgu.chel.su) Received: (from uucp@localhost) by mail.cgu.chel.su (8.11.6/8.11.2) with UUCP id g35FHSf51158; Fri, 5 Apr 2002 21:17:28 +0600 (YEKST) (envelope-from ilia@cgu.chel.su) Received: from localhost (localhost.cgu.chel.su [127.0.0.1]) by jane.poka.net (8.11.6/8.11.1) with ESMTP id g35FCxP13477; Fri, 5 Apr 2002 21:12:59 +0600 (YEKST) (envelope-from ilia@cgu.chel.su) Date: Fri, 5 Apr 2002 21:12:59 +0600 (YEKST) From: Ilia Chipitsine X-Sender: ilia@jane.poka.net To: mpd Cc: questions@FreeBSD.ORG Subject: Re: Perl thing In-Reply-To: <20020405090831.A93228@rochester.rr.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > cc: to hackers removed. > > > 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. > > > > 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. is it a part of ports collection ? make search key=bufsplit doesn't say anything about it... > > 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