Chinaunix首页 | 论坛 | 博客
  • 博客访问: 560712
  • 博文数量: 493
  • 博客积分: 2891
  • 博客等级: 少校
  • 技术积分: 4960
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-17 17:11
文章分类

全部博文(493)

文章存档

2010年(493)

C

分类:

2010-03-23 11:11:19

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
 
 
阅读(217) | 评论(0) | 转发(0) |
0

上一篇:hpi_shell

下一篇:C

给主人留下些什么吧!~~