mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:27:35 +00:00
LibC: mark strdup & strndup as __attribute__((malloc))
This commit is contained in:
parent
6e1d6d1ff5
commit
138595961b
1 changed files with 2 additions and 2 deletions
|
@ -45,8 +45,8 @@ const void* memmem(const void* haystack, size_t, const void* needle, size_t);
|
|||
void bzero(void*, size_t);
|
||||
void bcopy(const void*, void*, size_t);
|
||||
void* memset(void*, int, size_t);
|
||||
char* strdup(const char*);
|
||||
char* strndup(const char*, size_t);
|
||||
__attribute__((malloc)) char* strdup(const char*);
|
||||
__attribute__((malloc)) char* strndup(const char*, size_t);
|
||||
char* strcpy(char* dest, const char* src);
|
||||
char* strncpy(char* dest, const char* src, size_t);
|
||||
char* strchr(const char*, int c);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue