| 1248 | } |
| 1249 | |
| 1250 | int |
| 1251 | cmd_help(char *cmd) |
| 1252 | { |
| 1253 | (void)cmd; |
| 1254 | printf("HELP\n\n"); |
| 1255 | cmd = skip(cmd); |
| 1256 | if (!cmd) { |
| 1257 | print_cmd_help(); |
| 1258 | } else { |
| 1259 | int i; |
| 1260 | if ((i = find_cmd_index(cmd)) < 0) { |
| 1261 | printf("\nno help found for: %s\n", cmd); |
| 1262 | return CMD_FAILED; |
| 1263 | } |
| 1264 | printf("Help for: %s\n\n", commands[i].n); |
| 1265 | printf("%s", commands[i].h); |
| 1266 | } |
| 1267 | return CMD_OK; |
| 1268 | } |
| 1269 | |
| 1270 | void |
| 1271 | check_fd_limit() |
nothing calls this directly
no test coverage detected