Home
last modified time | relevance | path

Searched refs:cmd_length (Results 1 – 2 of 2) sorted by relevance

/components/finsh/
A Dmsh.c258 int length, cmd_length = 0; in msh_exec_module() local
263 while ((cmd_line[cmd_length] != ' ' && cmd_line[cmd_length] != '\t') && cmd_length < size) in msh_exec_module()
264 cmd_length ++; in msh_exec_module()
267 length = cmd_length + 32; in msh_exec_module()
275 rt_memcpy(pg_name, cmd_line, cmd_length); in msh_exec_module()
276 pg_name[cmd_length] = '\0'; in msh_exec_module()
286 rt_snprintf(pg_name, length - 1, "/bin/%.*s", cmd_length, cmd_line); in msh_exec_module()
301 rt_snprintf(pg_name, length - 1, "/bin/%.*s.mo", cmd_length, cmd_line); in msh_exec_module()
A Dmsh_file.c74 int length, cmd_length = 0; in msh_exec_script() local
79 while ((cmd_line[cmd_length] != ' ' && cmd_line[cmd_length] != '\t') && cmd_length < size) in msh_exec_script()
80 cmd_length ++; in msh_exec_script()
83 length = cmd_length + 32; in msh_exec_script()
90 rt_memcpy(pg_name, cmd_line, cmd_length); in msh_exec_script()
91 pg_name[cmd_length] = '\0'; in msh_exec_script()
101 rt_snprintf(pg_name, length - 1, "/bin/%.*s", cmd_length, cmd_line); in msh_exec_script()

Completed in 5 milliseconds