home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_07 / LATTIC_3.ZIP / HEADERS / VARARGS.H < prev    next >
C/C++ Source or Header  |  1990-09-24  |  399b  |  22 lines

  1. /*
  2.  * varargs.h - UNIX variable argument mechanism
  3.  *
  4.  * Started 3/12/89 Alex G. Kiernan
  5.  * 
  6.  * Copyright (c) 1989 HiSoft
  7.  */
  8.  
  9. #ifndef _VARARGS_H
  10. #define _VARARGS_H
  11.  
  12. #ifndef _VA_LIST
  13. #define _VA_LIST
  14. typedef char *va_list;
  15. #endif
  16.  
  17. #define va_dcl    va_list va_alist;
  18. #define va_start(a)    a=(va_list)&va_alist
  19. #define va_arg(a,b)    ((b *)(a+=sizeof(b)))[-1]
  20. #define va_end(ap)
  21. #endif
  22.