home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c      Meh, in C you gotta define EVERYTHING      243,242 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 242,787 of 243,242   
   Kenny McCormack to already5chosen@yahoo.com   
   Re: printf and time_t   
   05 Jan 26 12:45:27   
   
   From: gazelle@shell.xmission.com   
      
   In article <20260105105138.00005f0a@yahoo.com>,   
   Michael S   wrote:   
   ...   
   >I can't think about situation in which casting time_t value to 'long   
   >long' can go wrong.   
      
   These are all good suggestions, but in the end, are all just kludgey   
   workarounds.  My two points in posting are:   
      
       1) There really should be a generic way to print any numeric object and   
       have the compiler "Do The Right Thing".   
      
       2) Although time_t was the specific occasion for composing and posting   
       this, it, of course, applies to all the other "artificial" numeric   
       types.  As mentioned in the OP, they seem to have come up with a   
       solution for size_t; it would be nice if that were generalized.   
      
   P.S.  I like the rhythm of "long long can't go wrong"...   
      
   --   
      To be evangelical is to spend every waking moment hovering around   
      two emotional states: fear and rage. Evangelicals are seriously the   
      angriest and most vicious bunch of self-pitying, constantly-moaning   
      whinybutts I've ever encountered.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca