This commit is contained in:
Simon Choi
2023-07-30 22:40:36 +02:00
parent e093d7db7b
commit 9494356888
15 changed files with 481 additions and 15 deletions

View File

@@ -0,0 +1 @@
#define assert(x) (void)0

View File

@@ -0,0 +1 @@
double log(double x);

View File

@@ -0,0 +1 @@
#define FILENAME_MAX 4096

View File

@@ -0,0 +1,9 @@
#include <stddef.h>
void *malloc(size_t size);
void free(void *ptr);
void *realloc(void *ptr, size_t size);
void qsort(void *a, size_t n, size_t es, int (*cmp)(const void *, const void *));
#define DEF_STRONG(x)

View File

@@ -0,0 +1,15 @@
#include <stddef.h>
int strcmp(const char *s1, const char *s2);
size_t strcspn(const char *s1, const char *s2);
size_t strlen(const char *str);
int strncmp(const char *s1, const char *s2, size_t n);
char *strrchr(const char *p, int ch);
int memcmp(const void *str1, const void *str2, size_t n);
void *memcpy(void *dest, const void *src, size_t n);
void *memmove(void *str1, const void *str2, size_t n);
void *memset(void *str, int c, size_t n);
#define DEF_STRONG(x)
#define __weak_alias(x, y)