MCPcopy Create free account
hub / github.com/F-Stack/f-stack / boot_parse_cmdline_delim

Function boot_parse_cmdline_delim

freebsd/kern/subr_boot.c:186–199  ·  view source on GitHub ↗

* @brief breakup the command line into args, and pass to boot_parse_arg */

Source from the content-addressed store, hash-verified

184 * @brief breakup the command line into args, and pass to boot_parse_arg
185 */
186int
187boot_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

Callers 3

boot_parse_cmdlineFunction · 0.85

Calls 2

strsepFunction · 0.85
boot_parse_argFunction · 0.85

Tested by

no test coverage detected