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

Function find_next_word_end

components/finsh/shell.c:475–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473}
474
475static int find_next_word_end(const char *line, int curpos, int max)
476{
477 if (curpos >= max) return max;
478
479 /* Skip to next word */
480 while (curpos < max && (line[curpos] == ' ' || line[curpos] == '\t'))
481 curpos++;
482
483 /* Find word end */
484 while (curpos < max && !(line[curpos] == ' ' || line[curpos] == '\t'))
485 curpos++;
486
487 return curpos;
488}
489#endif /* defined(FINSH_USING_WORD_OPERATION) */
490
491#ifdef RT_USING_HOOK

Callers 1

ifFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected