* @brief breakup the command line into args, and pass to boot_parse_arg */
| 184 | * @brief breakup the command line into args, and pass to boot_parse_arg |
| 185 | */ |
| 186 | int |
| 187 | boot_parse_cmdline_delim(char *cmdline, const char *delim) |
| 188 | { |
| 189 | char *v; |
| 190 | int howto; |
| 191 | |
| 192 | howto = 0; |
| 193 | while ((v = strsep(&cmdline, delim)) != NULL) { |
| 194 | if (*v == '\0') |
| 195 | continue; |
| 196 | howto |= boot_parse_arg(v); |
| 197 | } |
| 198 | return (howto); |
| 199 | } |
| 200 | |
| 201 | /** |
| 202 | * @brief Simplified interface for common 'space or tab separated' args |
no test coverage detected