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

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