From owner-freebsd-hackers Mon Mar 24 08:40:09 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA17212 for hackers-outgoing; Mon, 24 Mar 1997 08:40:09 -0800 (PST) Received: from nexis.net (customer-1.ican.net [198.133.36.101]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA17174 for ; Mon, 24 Mar 1997 08:40:01 -0800 (PST) Received: from localhost (james@localhost) by nexis.net (8.8.5/8.8.5) with SMTP id LAA22031 for ; Mon, 24 Mar 1997 11:36:35 -0500 (EST) Date: Mon, 24 Mar 1997 11:36:32 -0500 (EST) From: James FitzGibbon To: freebsd-hackers@freebsd.org Subject: Replacement for strptime(3) ? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I'm looking for a replacement for strptime in order to complete a port. The calls in the source code look like this : strptime(date,"%d-%b-%Y", &locTime); >From what I can tell, strptime is the inverse of strftime, taking a string in ctime(3) format, a format specifier, and returning a time_t struct. Unfortunately, the call is not including in the standard FreeBSD libc. If it's available as a standard add-on library, I'd be happy to port that and make the new port rely on it. Otherwise, since there is only one call to strptime and the format specifier is static, I could write a relatively simple wrapper for it. Any help is appreciated. -- j.