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

16 lines
362 B
C

/*
* stdarg.h
*
* defines ANSI 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_start(ap,v) ap = (va_list)&v + sizeof(v)
#define va_arg(ap,t) ((t*)(ap += sizeof(t)))[-1]
#define va_end(ap) ap = NULL