Oracle iPlanet Web Proxy Server 4.0.14 NSAPI Developer's Guide

func_find

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

Syntax

FuncPtr func_find(char *name);

Returns

A pointer to the chosen function, suitable for dereferencing, or NULL if the function could not be found.

Parameters

char *name is the name of the function.

Example

/* 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