home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_08_03 / 8n03100a < prev    next >
Text File  |  1990-03-20  |  448b  |  25 lines

  1.  
  2.  
  3. *** Listing 5 ***
  4.  
  5. /*
  6.  * stdarg.h - variable-length argument processing (for stack-
  7.  * oriented argument passing with the 1st argument at the 
  8.  * lowest address)
  9.  */
  10. #ifndef _STDARG_H_INCLUDED
  11.  
  12. #include <quirks.h>
  13.  
  14. typedef char *va_list;
  15.  
  16. #define va_start(ap, p) ((void)((ap) = (va_list)(&(p) + 1)))
  17.  
  18. #define va_arg(ap, t) (((t *)((ap) += sizeof(t)))[-1])
  19.  
  20. #define va_end(ap) ((void)0)
  21.  
  22. #define _STDARG_H_INCLUDED
  23. #endif
  24.  
  25.