home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / SASC6574.LZX / include / stdarg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-04  |  393 b   |  17 lines

  1. /* Copyright (c) 1992-1993 SAS Institute, Inc., Cary, NC USA */
  2. /* All Rights Reserved */
  3.  
  4.  
  5. #ifndef _STDARG_H
  6. #define _STDARG_H 1
  7.  
  8. #ifndef _COMMLIST_H
  9. #include <sys/commlist.h>
  10. #endif
  11.  
  12. #define va_start(a,b) a=(char *)(&b+1)
  13. #define va_arg(a,b)  (*((b *) ((a +=  ((sizeof(b)+sizeof(int)-1) & ~(sizeof(int)-1))   ) -  ((sizeof(b)+sizeof(int)-1) & ~(sizeof(int)-1)) )))
  14. #define va_end(a)
  15.  
  16. #endif
  17.