From owner-freebsd-current Fri Mar 24 08:47:15 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id IAA08918 for current-outgoing; Fri, 24 Mar 1995 08:47:15 -0800 Received: from sequent.kiae.su (sequent.kiae.su [144.206.136.6]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id IAA08901 for ; Fri, 24 Mar 1995 08:47:03 -0800 Received: by sequent.kiae.su id AA12825 (5.65.kiae-2 ); Fri, 24 Mar 1995 19:43:22 +0300 Received: by sequent.KIAE.su (UUMAIL/2.0); Fri, 24 Mar 95 19:43:21 +0300 Received: (from ache@localhost) by astral.msk.su (8.6.8/8.6.6) id TAA00941; Fri, 24 Mar 1995 19:44:56 +0300 To: Rich Scott , Garrett Wollman Cc: current@FreeBSD.org References: <199503240703.AAA27649@lookout.ecte.uswc.uswest.com> <9503241534.AA05061@halloran-eldar.lcs.mit.edu> In-Reply-To: <9503241534.AA05061@halloran-eldar.lcs.mit.edu>; from Garrett Wollman at Fri, 24 Mar 1995 10:34:29 -0500 Message-Id: Organization: Olahm Ha-Yetzirah Date: Fri, 24 Mar 1995 19:44:56 +0300 X-Mailer: Mail/@ [v2.32 FreeBSD] From: "Andrey A. Chernov, Black Mage" X-Class: Fast Subject: Re: ATTENTION: VERY serious hidden bug in Lines: 20 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Length: 907 Sender: current-owner@FreeBSD.org Precedence: bulk In message <9503241534.AA05061@halloran-eldar.lcs.mit.edu> Garrett Wollman writes: >< said: >> strsep() also handles zero-length substrings correctly (when two >> delimiter chars are adjacent). It's not ANSI-standard, but it's a lot >> nicer than strtok(). >Which namespace pollution is precisely the reason why I didn't use it >in the first place. Too many library functions already use strsep(), just grep it. Strtok() usage in any libraries strongly depricated, it is user function with bogus static variables. -- Andrey A. Chernov : And I rest so composedly, /Now, in my bed, ache@astral.msk.su : That any beholder /Might fancy me dead - FidoNet: 2:5020/230.3 : Might start at beholding me, /Thinking me dead. RELCOM Team,FreeBSD Team : E.A.Poe From "For Annie" 1849