|
This keyword is used in more complicated XSUBs which require special handling for the C
function. The RETVAL variable is still declared, but it will not be returned unless it is
specified in the OUTPUT: section.
The following XSUB is for a C function which requires special handling of its parameters.
The Perl usage is given first.
$status = rpcb_gettime( "localhost", $timep );
|
|
The XSUB follows.
bool_t
rpcb_gettime(host,timep)
char *host
time_t timep
CODE:
RETVAL = rpcb_gettime( host, &timep );
OUTPUT:
timep
RETVAL
|
|
|
|