/* * 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 "pow.h" #include int power( int x, int y ) { printf("Got request for %d to the %d\n",x,y); return( pow(x,y)); } int * power_1(argp, rqstp) operands *argp; struct svc_req *rqstp; { static int result; int x,y; x = argp->x; y = argp->y; result = power(x,y); return (&result); }