-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstdarg.h
More file actions
22 lines (18 loc) · 1.01 KB
/
stdarg.h
File metadata and controls
22 lines (18 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*********************************************************************/
/* */
/* This Program Written by Paul Edwards. */
/* Released to the Public Domain */
/* */
/*********************************************************************/
/*********************************************************************/
/* */
/* stdarg.h - stdarg header file. */
/* */
/*********************************************************************/
#ifndef __STDARG_INCLUDED
#define __STDARG_INCLUDED
typedef char *va_list;
#define va_start(ap, parmN) ap = (char *)&parmN + 4
#define va_arg(ap, type) *(type *)(ap += sizeof(type), ap - sizeof(type))
#define va_end(ap) ap = 0
#endif