typedef struct {
char *cmd;
ret_code_t (*fun)(void);
const char *help;
com_enum_t type;
} command_def_t;
int run_command(void)
// returned: -1 - command not found
// 0 - command found and ran
// 1 - no command
// 2 - other block command (do not run command)
// 3 - get new command
阅读(226) | 评论(0) | 转发(0) |