diff options
| author | armink <[email protected]> | 2019-03-09 15:46:56 +0800 |
|---|---|---|
| committer | armink <[email protected]> | 2019-03-09 15:46:56 +0800 |
| commit | b2c338970f6332f916ef132f838f6d1f1d52d118 (patch) | |
| tree | b98e5987b2c26f1e45e2905af498ad30ff8b3cd2 /include/rtthread.h | |
| parent | 7f3f8d8352218f879b460894b6401c036156a93f (diff) | |
[kservice] Update the rt_strnlen function.
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 d2356b8eda..e66e30fddb 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -516,6 +516,7 @@ void *rt_memcpy(void *dest, const void *src, rt_ubase_t n); rt_int32_t rt_strncmp(const char *cs, const char *ct, rt_ubase_t count); rt_int32_t rt_strcmp(const char *cs, const char *ct); rt_size_t rt_strlen(const char *src); +rt_size_t rt_strnlen(const char *s, rt_ubase_t maxlen); char *rt_strdup(const char *s); #if defined(__CC_ARM) || defined(__CLANG_ARM) /* leak strdup interface */ |
