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,923 of 243,242   
   James Russell Kuyper Jr. to Keith Thompson   
   Re: printf and time_t   
   08 Jan 26 19:16:19   
   
   From: jameskuyper@alumni.caltech.edu   
      
   On 2026-01-07 16:32, Keith Thompson wrote:   
   > Lawrence D’Oliveiro  writes:   
   >> On Wed, 7 Jan 2026 12:45:30 -0500, James Russell Kuyper Jr. wrote:   
   >>> On a different point, I used time_t as an example. It would have   
   >>> been better to use ptrdiff_t instead, since  has a macro   
   >>> for that type, and doesn't have one for time_t.   
   >>   
   >> This is why you have configure scripts, so they can figure out the   
   >> right types to use for building on your platform.   
   >   
   > I don't follow.  ptrdiff_t is defined in , and is the correct   
   > type for the result of subtracting two pointers.  What relevant   
   > information would a configure script give you?   
      
   I suspect he's referring to time_t, not ptrdiff_t. I mentioned the   
   absence of a macro #defined in  as a reason why I should not   
   have used time_t as an example.   
      
   --- 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