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 243,146 of 243,242   
   Keith Thompson to Bart   
   Re: printf and time_t   
   04 Feb 26 16:04:06   
   
   From: Keith.S.Thompson+u@gmail.com   
      
   Bart  writes:   
   [...]   
   > Meanwhile C11 (_Generic) and C23 ("%w" formats) don't appear to have   
   > made much impact. It's not fixing it at the right level. But at least   
   > you can now have a 999-bit type that you probably can't print even if   
   > you wrote "%w999d"; or can you?   
      
   No, the "%wN" and "%wfN" length modifiers cannot (reliably) be   
   used with bit-precise integer types.  The standard requires them to   
   support the widths of the types defined in , typically 8,   
   16, 32, and 64 bits.  The standard says that "Other supported values   
   of N are implementation-defined", but any bit-precise integer type   
   is incompatible with any of the  types.   
      
   In a quick look, I don't see any standard ways to print (or read)   
   values of bit-precise integer types, either in N3220 (C23 draft)   
   or in N2783 (latest working draft for C202y).  I find this suprising   
   and disappointing.   
      
   --   
   Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com   
   void Void(void) { Void(); } /* The recursive call of the void */   
      
   --- 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