home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dmake40.zip / msdos / stdarg.h < prev    next >
Text File  |  1994-10-23  |  439b  |  23 lines

  1. /*
  2.  * stdarg.h
  3.  *
  4.  * defines ANSI style macros for accessing arguments of a function which takes
  5.  * a variable number of arguments
  6.  *
  7.  */
  8.  
  9. #if !defined(__STDARG)
  10. #define __STDARG
  11.  
  12. #if !defined(ZTC)
  13. #define __ss
  14. #endif
  15.  
  16. typedef char __ss *va_list;
  17.  
  18. #define va_dcl int va_alist
  19. #define va_start(ap,v)  ap = (va_list)&va_alist
  20. #define va_arg(ap,t)    ((t*)(ap += sizeof(t)))[-1]
  21. #define va_end(ap)      ap = NULL
  22. #endif
  23.