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

func_find() Function

The func_find function returns a pointer to the function specified by name. If the function does not exist, func_find returns NULL.


FuncPtr func_find(char *name);

Return Values

A pointer to the chosen function, suitable for de-referencing, or NULL if the function is not found.


char *name is the name of the function.


/* this block of code does the same thing as func_exec */
char *afunc = pblock_findval("afunction", pb);
FuncPtr afnptr = func_find(afunc);
 if (afnptr)
     return (afnptr)(pb, sn, rq);

See Also

func_exec() Function