Rev 635 | Rev 668 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 635 | Rev 640 | ||
|---|---|---|---|
| Line 156... | Line 156... | ||
| 156 | for (i=strlen(str);i > pos; i--) |
156 | for (i=strlen(str);i > pos; i--) |
| 157 | str[i] = str[i-1]; |
157 | str[i] = str[i-1]; |
| 158 | str[pos] = ch; |
158 | str[pos] = ch; |
| 159 | } |
159 | } |
| 160 | 160 | ||
| 161 | /** Try to find a command begenning with prefix */ |
161 | /** Try to find a command beginning with prefix */ |
| 162 | static const char * cmdtab_search_one(const char *name,link_t **startpos) |
162 | static const char * cmdtab_search_one(const char *name,link_t **startpos) |
| 163 | { |
163 | { |
| 164 | int namelen = strlen(name); |
164 | int namelen = strlen(name); |
| 165 | const char *curname; |
165 | const char *curname; |
| 166 | 166 | ||