mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +00:00
LibC: Actually, malloc() can return null so don't lie about that.
This commit is contained in:
parent
022f7790db
commit
56f0a30f9b
1 changed files with 3 additions and 3 deletions
|
@ -9,10 +9,10 @@ __BEGIN_DECLS
|
|||
#define EXIT_FAILURE 1
|
||||
#define MB_CUR_MAX 1
|
||||
|
||||
[[gnu::malloc, gnu::returns_nonnull, gnu::alloc_size(1)]] void* malloc(size_t);
|
||||
[[gnu::malloc, gnu::returns_nonnull, gnu::alloc_size(1, 2)]] void* calloc(size_t nmemb, size_t);
|
||||
[[gnu::malloc, gnu::alloc_size(1)]] void* malloc(size_t);
|
||||
[[gnu::malloc, gnu::alloc_size(1, 2)]] void* calloc(size_t nmemb, size_t);
|
||||
void free(void*);
|
||||
[[gnu::returns_nonnull]] void* realloc(void *ptr, size_t);
|
||||
void* realloc(void *ptr, size_t);
|
||||
char* getenv(const char* name);
|
||||
int atoi(const char*);
|
||||
long atol(const char*);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue