?? math_server.c
字號:
/* * This is sample code generated by rpcgen. * These are only templates and you can use them * as a guideline for developing your own functions. */#include "math.h"struct MATH *math_proc_2_svc(struct MATH *argp, struct svc_req *rqstp){ static struct MATH result; /* * insert server code here */
switch(argp->op)
{
case ADD:
result.result=argp->arg1+argp->arg2;
break;
case SUB:
result.result=argp->arg1-argp->arg2;
break;
case MUL:
result.result=argp->arg1*argp->arg2;
break;
case DIV:
result.result=argp->arg1/argp->arg2;
break;
default:
break;
} return &result;}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -