diff options
Diffstat (limited to '05/stdarg.h')
-rw-r--r-- | 05/stdarg.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/05/stdarg.h b/05/stdarg.h new file mode 100644 index 0000000..68fcd8e --- /dev/null +++ b/05/stdarg.h @@ -0,0 +1,4 @@ +typedef unsigned long va_list; +#define va_start(list, arg) ((list) = (unsigned long)&arg) +#define va_arg(list, type) (*((type *)(list += ((sizeof(type) + 7) & 0xfffffffffffffff8)))) +#define va_end(list) |