stdarg.h

来自「根据给定的程序进行调试」· C头文件 代码 · 共 41 行

H
41
字号
/*	stdarg.h

	Definitions for accessing parameters in functions that accept
	a variable number of arguments.

        Copyright (c) Borland International 1987,1988,1990
	All Rights Reserved.
*/

#ifndef __STDARG_H
#define __STDARG_H

#if __STDC__
#define _Cdecl
#else
#define _Cdecl	cdecl
#endif

#ifndef __PAS__
#define _CType _Cdecl
#else
#define _CType pascal
#endif

typedef void *va_list;

#ifdef  __cplusplus                                 
#define va_start(ap, parmN)	(ap = ...)
#else
#define va_start(ap, parmN)	((void)((ap) = (va_list)((char *)(&parmN)+((sizeof(parmN)+1) & 0xFFFE))))
#endif

#define va_arg(ap, type)    (*(type *)(((*(char **)&(ap))+=((sizeof(type)+1) & 0xFFFE))-(((sizeof(type)+1) & 0xFFFE))))
#define va_end(ap)          ((void)0)

#if !__STDC__
#define _va_ptr			    (...)
#endif

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?