diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-08-02 02:27:18 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-15 10:06:21 +0900 |
| commit | d35821fb1673ce1dacd5aada3c66446d9264e7f3 (patch) | |
| tree | 20dda418bb2225a57c091fdc83a63669392de136 | |
| parent | 242c8a93d9a754df07c750f63259e3e23d5fc5d4 (diff) | |
| download | ducc-d35821fb1673ce1dacd5aada3c66446d9264e7f3.tar.gz ducc-d35821fb1673ce1dacd5aada3c66446d9264e7f3.tar.zst ducc-d35821fb1673ce1dacd5aada3c66446d9264e7f3.zip | |
feat: add ducc version of stddef.h
| -rw-r--r-- | include/stddef.h | 10 | ||||
| -rw-r--r-- | std.h | 4 |
2 files changed, 11 insertions, 3 deletions
diff --git a/include/stddef.h b/include/stddef.h new file mode 100644 index 0000000..d4977de --- /dev/null +++ b/include/stddef.h @@ -0,0 +1,10 @@ +#define NULL 0 + +// TODO: unsigned +typedef long size_t; + +// TODO: +// - max_align_t (C11) +// - nullptr_t (C23) +// - offsetof +// - ptrdiff_t @@ -1,4 +1,4 @@ -typedef long size_t; +#include <stddef.h> struct FILE; typedef struct FILE FILE; @@ -29,8 +29,6 @@ size_t strlen(const char*); int strncmp(const char*, const char*, size_t); char* strstr(const char*, const char*); -#define NULL 0 - #include <stdarg.h> int vfprintf(FILE*, const char*, va_list); |
