|
The NO_INIT keyword is used to indicate that a function parameter is being used only as an
output value. The xsubpp compiler will normally generate code to read the values of all
function parameters from the argument stack and assign them to C variables upon entry to the
function. NO_INIT will tell the compiler that some parameters will be used for output rather
than for input and that they will be handled before the function terminates.
The following example shows a variation of the rpcb_gettime() function. This function uses
the timep variable only as an output variable and does not care about its initial contents.
bool_t
rpcb_gettime(host,timep)
char *host
time_t &timep = NO_INIT
OUTPUT:
timep
|
|
|
|