static const struct dispatch {
const char *cmd;
void (*fn)(int, char **, int);
int type;
} dispatch[] = {
{"mattrib",mattrib, 0},
{"mbadblocks",mbadblocks, 0},
{"mcd",mcd, 0},
{"mcopy",mcopy, 0},
{"mdel",mdel, 0},
{"mdeltree",mdel, 2},
{"mdir",mdir, 0},
{"mformat",mformat, 0},
{"minfo", minfo, 0},
{"mlabel",mlabel, 0},
{"mmd",mmd, 0},
{"mmount",mmount, 0},
{"mpartition",mpartition, 0},
{"mrd",mdel, 1},
{"mread",mcopy, 0},
{"mmove",mmove, 0},
{"mren",mmove, 1},
{"mtoolstest", mtoolstest, 0},
{"mtype",mcopy, 1},
{"mwrite",mcopy, 0},
{"mzip", mzip, 0}
};
↓
static const struct dispatch {
const char *cmd;
void (*fn)(int, char **, int);
int type;
} dispatch[] = {
{"nattrib",mattrib, 0},
{"nbadblocks",mbadblocks, 0},
{"ncd",mcd, 0},
{"ncopy",mcopy, 0},
{"ndel",mdel, 0},
{"ndeltree",mdel, 2},
{"ndir",mdir, 0},
{"nformat",mformat, 0},
{"ninfo", minfo, 0},
{"nlabel",mlabel, 0},
{"nmd",mmd, 0},
{"nmount",mmount, 0},
{"npartition",mpartition, 0},
{"nrd",mdel, 1},
{"nread",mcopy, 0},
{"nmove",mmove, 0},
{"nren",mmove, 1},
{"ntoolstest", mtoolstest, 0},
{"ntype",mcopy, 1},
{"nwrite",mcopy, 0},
{"nzip", mzip, 0}
};
# make