📄 rdict.x
字号:
/* dict.x */
/* RPC declarations for dictionary program */
const MAXWORD = 50; /* maximum length of a command or word */
const DICTSIZ = 100; /* number of entries in dictionary */
struct example { /* unused structure declared here to */
int exfield1; /* illustrate how rpcgen builds XDR */
char exfield2; /* routines to convert structures. */
};
/*------------------------------------------------------------------------
* RDICTPROG - remote program that provides insert, delete, and lookup
*------------------------------------------------------------------------
*/
program RDICTPROG { /* name of remote program (not used) */
version RDICTVERS { /* declaration of version (see below) */
int INITW(void) = 1;/* first procedure in this program */
int INSERTW(string) = 2;/* second procedure in this program */
int DELETEW(string) = 3;/* third procedure in this program */
int LOOKUPW(string) = 4;/* fourth procedure in this program */
} = 1; /* definition of the program version */
} = 0x30090949; /* remote program number (must be */
/* unique) */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -