1
0

stdarg.h 276 B

1234567891011
  1. #ifndef __STDARG
  2. #define __STDARG
  3. typedef char *va_list;
  4. #define va_start(list, start) list = (sizeof(start)<4 ? (char *)((int *)&(start)+1) : \
  5. (char *)(&(start)+1))
  6. #define va_end(list)
  7. #define va_arg(list, mode) ((mode*)(list += sizeof(mode)))[-1]
  8. #endif /* __STDARG */