home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v1.zip / DDKX86 / H386 / STDARG.H < prev    next >
C/C++ Source or Header  |  1995-04-14  |  1KB  |  34 lines

  1. /*DDK*************************************************************************/
  2. /*                                                                           */
  3. /* COPYRIGHT (C) Microsoft Corporation, 1989                                 */
  4. /* COPYRIGHT    Copyright (C) 1995 IBM Corporation                           */
  5. /*                                                                           */
  6. /*    The following IBM OS/2 WARP source code is provided to you solely for  */
  7. /*    the purpose of assisting you in your development of OS/2 WARP device   */
  8. /*    drivers. You may use this code in accordance with the IBM License      */
  9. /*    Agreement provided in the IBM Device Driver Source Kit for OS/2. This  */
  10. /*    Copyright statement may not be removed.                                */
  11. /*                                                                           */
  12. /*****************************************************************************/
  13. /*static char *SCCSID = "@(#)stdarg.h    6.1 90/11/16";*/
  14. /***
  15. *stdarg.h - defines ANSI-style macros for variable argument functions
  16. *
  17. *
  18. *Purpose:
  19. *    This file defines ANSI-style macros for accessing arguments
  20. *    of functions which take a variable number of arguments.
  21. *    [ANSI]
  22. *
  23. ****/
  24.  
  25.  
  26. #ifndef _VA_LIST_DEFINED
  27. typedef char *va_list;
  28. #define _VA_LIST_DEFINED
  29. #endif
  30.  
  31. #define va_start(ap,v) ap = (va_list)&v + sizeof(v)
  32. #define va_arg(ap,t) ((t *)(ap += sizeof(t)))[-1]
  33. #define va_end(ap) ap = NULL
  34.