From owner-freebsd-hackers Mon Feb 10 07:12:18 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id HAA06303 for hackers-outgoing; Mon, 10 Feb 1997 07:12:18 -0800 (PST) Received: from ami.tom.computerworks.net (root@AMI.RES.CMU.EDU [128.2.95.1]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id HAA06298 for ; Mon, 10 Feb 1997 07:12:14 -0800 (PST) Received: from bonkers.taronga.com by ami.tom.computerworks.net with smtp (Smail3.1.29.1 #1) id m0vtxOs-0021nkC; Mon, 10 Feb 97 10:12 EST Received: (from peter@localhost) by bonkers.taronga.com (8.6.11/8.6.9) id JAA11752; Mon, 10 Feb 1997 09:01:31 -0600 Date: Mon, 10 Feb 1997 09:01:31 -0600 From: peter@taronga.com (Peter da Silva) Message-Id: <199702101501.JAA11752@bonkers.taronga.com> To: hackers@freebsd.org Subject: Re: number of lines in a file, given its size Newsgroups: taronga.freebsd.hackers In-Reply-To: <199701122149.OAA26408@phaeton.artisoft.com> References: Organization: none Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hey, I've got a really hoopy idea. Many years ago I wrote a safe mkargv() function, that takes a string and returns a pointer to an argv list based on the string, dynamically allocating and reallocating the list as it grows, using any terminator you want. How about I donate it, and a bunch of similar routines, to FreeBSD. Let me dig it up and prettify it. It's just what the doctor ordered.