initial commit

Signed-off-by: sisungo <[email protected]>
This commit is contained in:
2026-07-07 11:10:21 +08:00
commit f67f81b235
21 changed files with 5285 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
#include <stdlib.h>
static inline void *reallocarray(void *p, size_t n, size_t size) {
if (n && size > (size_t)-1 / n) {
errno = ENOMEM;
return NULL;
}
return realloc(p, n * size);
}