www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/17/00:02:06

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: getdate()
Date: Thu, 16 Apr 1998 23:57:37 -0400
Organization: Two pounds of chaos and a pinch of salt.
Lines: 24
Message-ID: <3536D331.6C04@cs.com>
References: <eVzZ.3246$sN3 DOT 526143 AT news21 DOT bellglobal DOT com> <3536CBE7 DOT 3A55 AT cs DOT com> <54AZ.3256$sN3 DOT 534101 AT news21 DOT bellglobal DOT com>
NNTP-Posting-Host: ppp230.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Paul Derbyshire wrote:
> 
> These have date info?
> I searched my info for date, not for time, and getdate() was all it turned
> up...

That's another ANSI function.  According to Info, it returns the
following struct:

     struct date {
       short da_year;
       char  da_day;
       char  da_mon;
     };

That should do what you want.

-- 
---------------------------------------------------------------------
|      John M. Aldrich       | "To be 'matter of fact' about the    |
|       aka Fighteer I       | world is to blunder into fantasy--   |
|   mailto:fighteer AT cs DOT com   | and dull fantasy at that, as the real|
| http://www.cs.com/fighteer | world is strange and wonderful." -LL |
---------------------------------------------------------------------
 were using 62 megs it
would have the exact same problem at the command prompt, which it does not.

So what is wrong with PGCC? What other circumstances will make it emit that
error message? Environment space perhaps? RHIDE will fill its environment and
that of any subtask with $RHIDE_COMPILE_FLAGS and so forth, so that could be
it, except I just don't see why cc1plus would use environment space as internal
storage.

--
   .*.  "Clouds are not spheres, mountains are not cones, coastlines are not
-()  <  circles, and bark is not smooth, nor does lightning travel in a
   `*'  straight line."     ------------------------------------------------
        -- B. Mandelbrot   | Paul Derbyshire (PGD) ao950 AT freenet DOT carleton DOT ca
______________________ ____|_____________                   pderbysh AT usa DOT net
Programmer & Humanist |  ICQ:  10423848  | http://chat.carleton.ca/~pderbysh



- Raw text -


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