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

Function str_common

components/finsh/msh.c:616–627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616static int str_common(const char *str1, const char *str2)
617{
618 const char *str = str1;
619
620 while ((*str != 0) && (*str2 != 0) && (*str == *str2))
621 {
622 str ++;
623 str2 ++;
624 }
625
626 return (str - str1);
627}
628
629#ifdef DFS_USING_POSIX
630void msh_auto_complete_path(char *path)

Callers 3

msh_auto_complete_pathFunction · 0.85
msh_auto_completeFunction · 0.85
msh_opt_completeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected