input.h

来自「一个网络流量分析的完整的程序」· C头文件 代码 · 共 42 行

H
42
字号
/***input.h - structure declarations and function prototypes for input.cWritten by Gerard Paul JavaCopyright (c) Gerard Paul Java 1997***/#include <string.h>#include <stdlib.h>#include <malloc.h>#include "winops.h"#define CTRL_X 24struct FIELD {    char *buf;    unsigned int len;    unsigned int tlen;    unsigned int xpos;    unsigned int ypos;    struct FIELD *prevfield;    struct FIELD *nextfield;};struct FIELDLIST {    struct FIELD *list;    WINDOW *fieldwin;    PANEL *fieldpanel;    int dlgtextattr;    int fieldattr;};void tx_initfields(struct FIELDLIST *list, int leny, int lenx, int begy, int begx,              int dlgtextattr, int dlgfieldattr);void tx_addfield(struct FIELDLIST *list, unsigned int len, unsigned int y,	      unsigned int x, char *initstr);void tx_getinput(struct FIELDLIST *list, struct FIELD *field, int *exitkey);void tx_fillfields(struct FIELDLIST *list, int *aborted);void tx_destroyfields(struct FIELDLIST *list);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?