MentOS  0.8.0
The Mentoring Operating System
Macros | Typedefs
stdarg.h File Reference

Contains the macros required to manage variable number of arguments. More...

Go to the source code of this file.

Macros

#define va_item   int
 The type of the item on the stack.
 
#define va_size(t)    (((sizeof(t) + sizeof(va_item) - 1) / sizeof(va_item)) * sizeof(va_item))
 Amount of space required in an argument list (ie. the stack) for an argument of type t.
 
#define va_start(ap, last_arg)   (ap = ((va_list)(&last_arg) + va_size(last_arg)))
 The start of a variadic list.
 
#define va_end(ap)   ((void)0)
 The end of a variadic list.
 
#define va_arg(ap, t)   (ap += va_size(t), *((t *)(ap - va_size(t))))
 The argument of a variadic list.
 

Typedefs

typedef char * va_list
 The va_list type is an array containing a single element of one structure containing the necessary information to implement the va_arg macro.
 

Detailed Description

Contains the macros required to manage variable number of arguments.