home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / C / DMAKE37S.ZIP / DMAKE / UNIX / SYSVR3 / STDARG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-06  |  469 b   |  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_H__)
  10. #define __STDARG_H__
  11.  
  12. #if !defined(_VA_LIST_) && !defined(_VA_LIST)
  13. #define _VA_LIST_
  14. #define _VA_LIST
  15. typedef char *va_list;
  16. #endif
  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.