accelerator/runtime_cli.c
static bool extract_one(char **orig, char **extracted) {
  /* strtok_r is MT-safe while strtok is not */
  *extracted = strtok_r(*orig, " ", orig);
  if (*extracted == NULL) {
    return false;
  }
  return true;
}
/**
 * @brief Extract one subcommand from given string
 *
 * The orig parameter is sliced to be the remaining string, e.g.
 *
 * orig(input) = extracted + " " + orig(output)
 *
 * @param[in,out] orig The original string to be extracted
 * @param[out] extracted The string extracted from orig.
 *
 * @returns
 * - True if the given string can be separated to two strings
 * - False if the given string cannot be separated to two strings
 */
@brief Extract one subcommand from given string
The orig parameter is sliced to be the remaining string, e.g.



@param[in,out] orig The original string to be extracted
@param[out] extracted The string extracted from orig.

@returns
- True if the given string can be separated to two strings
- False if the given string cannot be separated to two strings
@brief Extract one subcommand from given string The orig parameter is sliced to be the remaining string e . g . @param [ in out ] orig The original string to be extracted @param [ out ] extracted The string extracted from orig . @returns - True if the given string can be separated to two strings - False if the given string cannot be separated to two strings
static bool extract_one(char **orig, char **extracted) {
  *extracted = strtok_r(*orig, " ", orig);
  if (*extracted == NULL) {
    return false;
  }
  return true;
}
static bool extract_one ( char * * orig , char * * extracted ) { * extracted = strtok_r ( * orig , " " , orig ) ; if ( * extracted == NULL ) { return false ; } return true ; }
@brief Extract one subcommand from given string
 The orig parameter is sliced to be the remaining string, e.g.
@brief Extract one subcommand from given string The orig parameter is sliced to be the remaining string e . g .
/* strtok_r is MT-safe while strtok is not */