?? menu.h
字號(hào):
/* * FILENAME: menu.h * * Copyright 2000-2004 By InterNiche Technologies Inc. All rights reserved * Portions Copyright 1990,1993 by NetPort Software * * Structure for simple application menu system. * * MODULE: NTF * * * PORTABLE: yes */#ifndef MENU_H#define MENU_H 1#include "in_utils.h"/* a menu can be defined as an array of these structures. Selecting a * key can invoke the corrosponding function. */struct menu_op /* structure to describe each menu item */{ char * opt; /* the option name */ int (*func)(void * pio); /* routine name to execute the option */ char * desc; /* description of the option */};#define CBUFLEN 128 /* size of cbuf */extern char cbuf[CBUFLEN]; /* user command line buffer */#define MAX_MENUS 25extern struct menu_op * menus[MAX_MENUS]; /* master menu list *//* menu routine prototypes: */extern int install_menu(struct menu_op * newmenu); /* add new menu */extern char * getcmd(void); /* get cmdline into cbuf while spinning tasks */extern void showmenu(void * pio, struct menu_op *);extern int help(void * pio); /* display menu prompt text */extern int stooges(void * pio); /* called when system breaks */extern int do_command(void * pio); /* parse & perform command */extern char * nextarg(char*); /* get nexxt arg from a string */extern int stlen(char*); /* like strlen, but not exactly */extern int stcmp(char*, char*); /* like strcmp, but not exactly */extern int setdebug (void * pio);extern int arp_stats(void * pio);extern u_long sysuptime(void);#endif /* MENU_H */
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -