home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dmake40.zip / unix / bsd43 / stdarg.h < prev    next >
Text File  |  1994-10-23  |  425b  |  18 lines

  1. /*
  2.  * stdarg.h
  3.  *
  4.  * defines ANSI style macros for accessing arguments of a function which takes
  5.  * a variable number of arguments
  6.  *
  7.  */
  8.  
  9. typedef char *va_list;
  10.  
  11. #if defined(sparc)
  12. # define va_alist __builtin_va_alist
  13. #endif
  14. # define va_dcl int va_alist
  15. # define va_start(list,v) list = (char *)&va_alist
  16. # define va_end(list)     list = NULL
  17. # define va_arg(list,mode) ((mode *)(list += sizeof(mode)))[-1]
  18.