mytest_clnt.c
上传用户:dgyhgb
上传日期:2007-01-07
资源大小:676k
文件大小:0k
- /*
- * Please do not edit this file.
- * It was generated using rpcgen.
- */
- #include <memory.h> /* for memset */
- #include "mytest.h"
- /* Default timeout can be changed using clnt_control() */
- static struct timeval TIMEOUT = { 25, 0 };
- int *
- ct_p_2(void *argp, CLIENT *clnt)
- {
- static int clnt_res;
- memset((char *)&clnt_res, 0, sizeof(clnt_res));
- if (clnt_call(clnt, CT_P, xdr_void, argp, xdr_int, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
- return (NULL);
- }
- return (&clnt_res);
- }