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

Function msh_get_argc

components/finsh/msh.c:885–901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

883}
884
885static int msh_get_argc(char *prefix, char **last_argv)
886{
887 int argc = 0;
888 char *ch = prefix;
889
890 while (*ch)
891 {
892 if ((*ch == ' ') && *(ch + 1) && (*(ch + 1) != ' '))
893 {
894 *last_argv = ch + 1;
895 argc++;
896 }
897 ch++;
898 }
899
900 return argc;
901}
902
903static void msh_opt_complete(char *opts_str, struct msh_cmd_opt *cmd_opt)
904{

Callers 1

msh_opt_auto_completeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected