2 #include <rc_cmdlength.h>
10 /* evaluate the length of the command sequence. This breaks at the first
11 * char that is not >= SPACE and <= 127 after trimming from the right.
14 remoteconfig_cmdlength(
22 /* trim whitespace & garbage from the right */
23 while (src_end != src_buf) {
25 if (ch > ' ' && ch < 128)
29 /* now do a forward scan */
30 for (scan = src_buf; scan != src_end; ++scan) {
32 if ((ch < ' ' || ch >= 128) && ch != '\t')
35 return (size_t)(scan - src_buf);