add lab answers
This commit is contained in:
12
labcodes_answer/lab2_result/libs/stdarg.h
Normal file
12
labcodes_answer/lab2_result/libs/stdarg.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef __LIBS_STDARG_H__
|
||||
#define __LIBS_STDARG_H__
|
||||
|
||||
/* compiler provides size of save area */
|
||||
typedef __builtin_va_list va_list;
|
||||
|
||||
#define va_start(ap, last) (__builtin_va_start(ap, last))
|
||||
#define va_arg(ap, type) (__builtin_va_arg(ap, type))
|
||||
#define va_end(ap) /*nothing*/
|
||||
|
||||
#endif /* !__LIBS_STDARG_H__ */
|
||||
|
||||
Reference in New Issue
Block a user