home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c329 / 2.img / INCL_A / STDARG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-23  |  472 b   |  16 lines

  1. /*  stdarg.h
  2.  *  ANSI C Runtime Library
  3.  */
  4.  
  5. #ifndef _STDARG_H
  6. #define _STDARG_H
  7.  
  8. /* Trivial stdarg, assuming no register parameters or alignment  */
  9.  
  10. typedef char *va_list[1];           /* to do v?printf this must be an array */
  11.                     /* so we can get an implicit pointer */
  12. # define va_start(list,lstprm) list[0] = (char *) (&__va_ansiarg)
  13. # define va_end(list)
  14. # define va_arg(list,mode) ((mode *)(list[0] += sizeof(mode)))[-1]
  15. #endif  /* _STDARG_H */
  16.