summaryrefslogtreecommitdiff
path: root/libc/include/varargs.h
blob: b5c647f20d91d56ece6288b03afeb07a9f43b4f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

#ifndef __VARARGS_H
#define __VARARGS_H

typedef char *va_list;

#define va_dcl va_list va_alist;
#define va_start(ap) ap = (va_list)&va_alist
#define va_arg(ap,t) ((t *)(ap += sizeof(t)))[-1]
#define va_end(ap) ap = NULL

#endif