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,783 of 243,242   
   highcrew to Kenny McCormack   
   Re: printf and time_t   
   05 Jan 26 12:48:43   
   
   From: high.crew3868@fastmail.com   
      
   On 1/5/26 8:19 AM, Kenny McCormack wrote:   
   > It turns out that in my use case, %lu works, but how can you know?   
   > Note, BTW, that another way to do it is to use %d and case the time_t value   
   > to (int), but that seems kludgey.   
      
   I think I'd use %jd and cast it to intmax_t   
      
      printf("%jd\n", (intmax_t)t);   
      
   I don't know if there's any risk in doing so.   
      
   --   
   High Crew   
      
   --- 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