command.h
来自「ucos_ii基础上加上网络功能」· C头文件 代码 · 共 45 行
H
45 行
/*
* $Id: command.h,v 1.3 2002/02/07 10:25:41 linfusheng Exp $
*/
#define PATHLEN 1024
#define CMDLEN 10240
#define MAXARGS 1000
#define ALIASALLOC 20
#define STDIN 0
#define STDOUT 1
#define MAXSOURCE 10
typedef int BOOL;
#ifndef isblank
#define isblank(ch) (((ch) == ' ') || ((ch) == '\t'))
#endif
#define isquote(ch) (((ch) == '"') || ((ch) == '\''))
#define isdecimal(ch) (((ch) >= '0') && ((ch) <= '9'))
#define isoctal(ch) (((ch) >= '0') && ((ch) <= '7'))
typedef struct {
char *name;
char *usage;
// void (*in)();
void (*func)();
// void (*out)();
int minargs;
int maxargs;
// int privilege;
} CMDTAB;
struct cmdtree {
struct cmdtree *parent;
struct cmdtree *prev_brother;
struct cmdtree *next_brother;
struct cmdtree *child;
struct cmdtab *cmd;
};
extern BOOL command(char *cmd);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?