Sun Java System Web Server 7.0 Update 3 NSAPI Developer's Guide

func_exec() Function

The func_exec function executes the function named by the fn entry in a specified pblock. If the function name is not found, func_exec logs the error and returns REQ_ABORTED.

You can use this function to execute a built-in Server Application Function (SAF) by identifying it in the pblock.


int func_exec(pblock *pb, Session *sn, Request *rq);

Return Values

The value returned by the executed function, or the constant if successful. REQ_ABORTED, if no function is executed.


pblock pb is the pblock containing the function name (fn) and parameters.

Session *sn is the session.

Request *rq is the request.

The Session and Request parameters are the same parameters as the ones passed into the custom SAF.

See Also

log_error() Function