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,191 of 243,242   
   Keith Thompson to Janis Papanagnou   
   Re: printf and time_t   
   08 Feb 26 04:03:23   
   
   From: Keith.S.Thompson+u@gmail.com   
      
   Janis Papanagnou  writes:   
   [...]   
   > C's "varargs" mechanism always appeared kludgy to me. Though I   
   > haven't followed "varargs" in "C" since K&R times, but I've a   
   > faint impression that something has been done and changed since   
   > back then.  What was it, or is it still supported [only] in its   
   > original form?   
      
   Pre-ANSI C had a  header, used to process arguments to   
   variadic functions like printf.  C89 replaced it with ,   
   which hasn't changed much since then.  Consult any recent standard   
   draft for details.  C23 removes the requirement for the last   
   non-variadic argument to be passed to the va_start macro, allowing   
   for functions with *only* variadic parameters.   
      
   --   
   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