dos_compilers/Microsoft C v4/INC/VARARGS.H
2024-07-04 11:17:49 -07:00

17 lines
391 B
C

/*
* varargs.h
*
* defines XENIX style macros for accessing arguments of a function which takes
* a variable number of arguments
*
* Copyright (C) Microsoft Corporation, 1985, 1986
*
*/
typedef char *va_list;
#define va_dcl va_list va_alist;
#define va_start(ap) ap = (va_list)&va_alist
#define va_arg(ap,t) ((t*)(ap += sizeof(t)))[-1]
#define va_end(ap) ap = NULL