mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
libc: Change the return type of strerror from "const char *" to "char *"
to follow up the spec here: https://pubs.opengroup.org/onlinepubs/9699919799/functions/strerror.html Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
fa42ebace4
commit
6b8274fbd8
+1
-1
@@ -53,7 +53,7 @@ extern "C"
|
||||
|
||||
FAR char *strdup(FAR const char *s);
|
||||
FAR char *strndup(FAR const char *s, size_t size);
|
||||
FAR const char *strerror(int);
|
||||
FAR char *strerror(int);
|
||||
int strerror_r(int, FAR char *, size_t);
|
||||
size_t strlen(FAR const char *);
|
||||
size_t strnlen(FAR const char *, size_t);
|
||||
|
||||
Reference in New Issue
Block a user