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

func_insert() Function

The func_insert function dynamically inserts a named function into the server's table of functions. This function should only be called during the Init stage.


FuncStruct *func_insert(char *name, FuncPtr fn);

Return Values

The FuncStruct structure that identifies the newly inserted function. The caller should not modify the contents of the FuncStruct structure.


char *name is the name of the function.

FuncPtr fn is the pointer to the function.


func_insert("my-service-saf", &my_service_saf);

See Also

func_exec() Function, func_find() Function