mirror of
https://github.com/apache/nuttx.git
synced 2026-09-22 22:55:02 +08:00
compiler.h: Add malloc_like? and realloc_like macro
and apply them to the related functions Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
6e66603da5
commit
e1f45857e3
+2
-2
@@ -51,8 +51,8 @@ extern "C"
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
FAR char *strdup(FAR const char *s);
|
||||
FAR char *strndup(FAR const char *s, size_t size);
|
||||
FAR char *strdup(FAR const char *s) malloc_like;
|
||||
FAR char *strndup(FAR const char *s, size_t size) malloc_like;
|
||||
FAR char *strerror(int);
|
||||
int strerror_r(int, FAR char *, size_t);
|
||||
size_t strlen(FAR const char *);
|
||||
|
||||
Reference in New Issue
Block a user