diff options
| author | a1012112796 <[email protected]> | 2022-06-29 14:21:21 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-06-29 14:21:21 +0800 |
| commit | 697bf139b2385daac4968bac3c4f551a47c00d10 (patch) | |
| tree | c8bf1b6377efce24d7ccd157d3668d5703773cfd /include/rtthread.h | |
| parent | 5b00165f6ef9161f67103df583564472a1371a3b (diff) | |
[enhancement] Add string information for error (#3186)
* [enhancement]Add string information for error
* Update src/kservice.c
* Update src/kservice.c
Co-authored-by: Man, Jianting (Meco) <[email protected]>
* remove %m
Signed-off-by: a1012112796 <[email protected]>
Co-authored-by: Meco Man <[email protected]>
Diffstat (limited to 'include/rtthread.h')
| -rw-r--r-- | include/rtthread.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rtthread.h b/include/rtthread.h index fa72384a1d..c55720b7d1 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -592,6 +592,7 @@ rt_device_t rt_console_get_device(void); rt_err_t rt_get_errno(void); void rt_set_errno(rt_err_t no); int *_rt_errno(void); +const char *rt_strerror(rt_err_t error); #if !defined(RT_USING_NEWLIB) && !defined(_WIN32) #ifndef errno #define errno *_rt_errno() |
