llservice.c

来自「this gives details of the network progra」· C语言 代码 · 共 31 行

C
31 行
字号
/* * 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 <stdio.h>#include <stdlib.h>#include "ll.h"/* remote procedure that sums the ints in the linked list */ int *sum_1_svc(foo *argp, struct svc_req *rqstp){	static int  result;	result=0;	while (argp) {	  result += argp->x;	  argp = argp->next;	}	return (&result);}

⌨️ 快捷键说明

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