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

Function rt_strcmp

src/klibc/kstring.c:474–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472 */
473#ifndef RT_KLIBC_USING_USER_STRCMP
474rt_int32_t rt_strcmp(const char *cs, const char *ct)
475{
476#ifdef RT_KLIBC_USING_LIBC_STRCMP
477 return strcmp(cs, ct);
478#else
479 while (*cs && *cs == *ct)
480 {
481 cs++;
482 ct++;
483 }
484
485 return (*cs - *ct);
486#endif /* RT_KLIBC_USING_LIBC_STRCMP */
487}
488#endif /* RT_KLIBC_USING_USER_STRCMP */
489RTM_EXPORT(rt_strcmp);
490

Callers 15

directory_delete_for_mshFunction · 0.85
cmd_tailFunction · 0.85
directory_setattrFunction · 0.85
falFunction · 0.85
pci_matchFunction · 0.85
rt_pci_ep_getFunction · 0.85
serial_cfg_from_argsFunction · 0.85
sfFunction · 0.85
spi_matchFunction · 0.85
platform_matchFunction · 0.85

Calls

no outgoing calls

Tested by 15

test_rt_device_findFunction · 0.68
utest_do_runFunction · 0.68
utest_testcase_runFunction · 0.68
utest_assert_stringFunction · 0.68
test_address_conversionFunction · 0.68
sys_run_taskFunction · 0.68
gpio_output_taskFunction · 0.68
gpio_input_taskFunction · 0.68
uart_taskFunction · 0.68
i2c_taskFunction · 0.68
spi_taskFunction · 0.68