delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/06/19/16:48:43

From: "Tim Van Holder" <tim DOT van DOT holder AT pandora DOT be>
To: "DJGPP-Workers" <djgpp-workers AT delorie DOT com>
Subject: POSIX getdate() function
Date: Tue, 19 Jun 2001 22:49:34 +0200
Message-ID: <CAEGKOHJKAAFPKOCLHDICEINCEAA.tim.van.holder@pandora.be>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Reply-To: djgpp-workers AT delorie DOT com

I'd like to implement the POSIX getdate() function (parses a
given string using a set of possible format specs and returns
a struct tm* with the corresponding date/time), mainly because
it looks like a challenge.

Of course, there is also the not-so-POSIX DOS getdate() function.
What is the recommended way of dealing with this?
 a) not implementing the POSIX getdate() function
 b) use _posix_getdate as name, with a #define to getdate in
    time.h
 c) rename the DOS getdate to _dos_getdate and place a define
    to getdate in dos.h
 d) some other resolution

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019