home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
DMAKE38C.ZIP
/
UNIX
/
COHERENT
/
STDARG.H
< prev
next >
Wrap
Text File
|
1992-01-23
|
469b
|
23 lines
/*
* stdarg.h
*
* defines ANSI style macros for accessing arguments of a function which takes
* a variable number of arguments
*
*/
#if !defined(__STDARG_H__)
#define __STDARG_H__
#if !defined(_VA_LIST_) && !defined(_VA_LIST)
#define _VA_LIST_
#define _VA_LIST
typedef char *va_list;
#endif
#define va_dcl int va_alist
#define va_start(ap,v) ap = (va_list)&va_alist
#define va_arg(ap,t) ((t*)(ap += sizeof(t)))[-1]
#define va_end(ap) ap = NULL
#endif