This is particularly useful for audio challenges which aren't
readily available for observation if missed the first time.
const char *arg;
int len;
switch (command[0]) {
const char *arg;
int len;
switch (command[0]) {
+ /* 'h' for histogram */
case 'h':
{
char *category = NULL;
case 'h':
{
char *category = NULL;
mnemon_print_histogram (mnemon, category, length);
}
break;
mnemon_print_histogram (mnemon, category, length);
}
break;
+ /* 'r' for repeat */
+ case 'r':
+ {
+ /* Nothing necessary for repeating. */
+ }
+ break;
default:
printf ("Unknown command: %s\n", command);
break;
default:
printf ("Unknown command: %s\n", command);
break;