MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_strlen

Function rt_strlen

src/klibc/kstring.c:500–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498 */
499#ifndef RT_KLIBC_USING_USER_STRLEN
500rt_size_t rt_strlen(const char *s)
501{
502#ifdef RT_KLIBC_USING_LIBC_STRLEN
503 return strlen(s);
504#else
505 const char *sc = RT_NULL;
506 for (sc = s; *sc != '\0'; ++sc);
507 return sc - s;
508#endif /* RT_KLIBC_USING_LIBC_STRLEN */
509}
510#endif /* RT_KLIBC_USING_USER_STRLEN */
511RTM_EXPORT(rt_strlen);
512

Callers 15

finsh_get_promptFunction · 0.85
finsh_set_passwordFunction · 0.85
finsh_wait_authFunction · 0.85
finsh_thread_entryFunction · 0.85
cmd_mvFunction · 0.85
msh_auto_complete_pathFunction · 0.85
msh_auto_completeFunction · 0.85
_get_string_descriptorFunction · 0.85
rt_usbh_adk_send_stringFunction · 0.85
print_thread_infoFunction · 0.85
lwp_argscopyFunction · 0.85

Calls

no outgoing calls

Tested by 15

file_basenameFunction · 0.68
utest_do_runFunction · 0.68
test_dfs_writeFunction · 0.68
test_dfs_readFunction · 0.68
test_dfs_renameFunction · 0.68
i2c_threadFunction · 0.68
usbd_testFunction · 0.68
i2c_threadFunction · 0.68
usbd_testFunction · 0.68
i2c_threadFunction · 0.68
usbd_testFunction · 0.68
hash_sha256_testFunction · 0.68