2 * stdarg.h - variable arguments
4 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
5 * See the copyright notice in the ACK home directory, in the file "Copyright".
7 /* $Id: stdarg.h,v 1.5 1994/06/24 11:41:14 ceriel Exp $ */
9 #if !defined(_STDARG_H)
12 typedef char *va_list;
14 #define __vasz(x) ((sizeof(x)+sizeof(int)-1) & ~(sizeof(int) -1))
16 #define va_start(ap, parmN) (ap = (va_list)&parmN + __vasz(parmN))
17 #define va_arg(ap, type) (*((type *)(void *)((ap += __vasz(type)) - __vasz(type))))
20 #endif /* _STDARG_H */