1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:57:45 +00:00

Start work on a standard C library. I'm calling it... LibC.

This commit is contained in:
Andreas Kling 2018-10-22 13:57:25 +02:00
parent 85bcf2ed0f
commit 4cbf079a17
8 changed files with 311 additions and 0 deletions

12
LibC/stdarg.h Normal file
View file

@ -0,0 +1,12 @@
#pragma once
extern "C" {
typedef char* va_list;
#define va_start(ap, v) ap = (va_list)&v + sizeof(v)
#define va_arg(ap, t) ((t*)(ap += sizeof(t)))[-1]
#define va_end(ap) ap = nullptr
}