aboutsummaryrefslogtreecommitdiff
path: root/stdarg.h
diff options
context:
space:
mode:
Diffstat (limited to 'stdarg.h')
-rw-r--r--stdarg.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/stdarg.h b/stdarg.h
new file mode 100644
index 0000000..67b9c71
--- /dev/null
+++ b/stdarg.h
@@ -0,0 +1,11 @@
+#ifndef _STDARG_H
+#define _STDARG_H
+
+typedef char *va_list;
+
+/* only correct for i386 */
+#define va_start(ap,last) ap=(char *)&(last);
+#define va_arg(ap,type) (ap-=sizeof (type), *(type *)(ap))
+#define va_end(ap)
+
+#endif