From owner-freebsd-questions Fri Apr 5 6: 9:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from roc-66-66-72-6.rochester.rr.com (roc-66-66-72-6.rochester.rr.com [66.66.72.6]) by hub.freebsd.org (Postfix) with ESMTP id 8F6AD37B41A for ; Fri, 5 Apr 2002 06:09:51 -0800 (PST) Received: by roc-66-66-72-6.rochester.rr.com (Postfix, from userid 1000) id 69EF9901A00; Fri, 5 Apr 2002 09:08:31 -0500 (EST) Date: Fri, 5 Apr 2002 09:08:31 -0500 From: mpd To: Ilia Chipitsine Cc: questions@freebsd.org Subject: Re: Perl thing Message-ID: <20020405090831.A93228@rochester.rr.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from ilia@cgu.chel.su on Fri, Apr 05, 2002 at 07:56:53PM +0600 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. 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