|
|
1.1 ! root 1: /*** ! 2: *varargs.h - XENIX style macros for variable argument functions ! 3: * ! 4: * Copyright (c) 1985-1990, Microsoft Corporation. All rights reserved. ! 5: * ! 6: *Purpose: ! 7: * This file defines XENIX style macros for accessing arguments of a ! 8: * function which takes a variable number of arguments. ! 9: * [System V] ! 10: * ! 11: ****/ ! 12: ! 13: ! 14: #ifndef _VA_LIST_DEFINED ! 15: typedef char _FAR_ *va_list; ! 16: #define _VA_LIST_DEFINED ! 17: #endif ! 18: ! 19: /* define NULL pointer value */ ! 20: ! 21: #define NULL 0 ! 22: ! 23: #define va_dcl va_list va_alist; ! 24: #define va_start(ap) ap = (va_list)&va_alist ! 25: #define va_arg(ap,t) ((t _FAR_ *)(ap += sizeof(t)))[-1] ! 26: #define va_end(ap) ap = NULL
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.