spawn implemented.
[mit-jos.git] / inc / stdarg.h
blob9fc067ede647af5e644bdcd8f26ec2feb270404f
1 /* $NetBSD: stdarg.h,v 1.12 1995/12/25 23:15:31 mycroft Exp $ */
3 #ifndef JOS_INC_STDARG_H
4 #define JOS_INC_STDARG_H
6 typedef char *va_list;
8 #define __va_size(type) \
9 (((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long))
11 #define va_start(ap, last) \
12 ((ap) = (va_list)&(last) + __va_size(last))
14 #define va_arg(ap, type) \
15 (*(type *)((ap) += __va_size(type), (ap) - __va_size(type)))
17 #define va_end(ap) ((void)0)
19 #endif /* !JOS_INC_STDARG_H */