functionp(3) LPC Library Functions functionp(3)
NNAAMMEE
functionp() - determine whether or not a given variable is
a function pointer.
SSYYNNOOPPSSIISS
int functionp( mixed arg );
DDEESSCCRRIIPPTTIIOONN
Return 1 if `arg' is a function pointer and zero (0) oth-
erwise. Function pointers are variables of type 'func-
tion' and are constructed as follows:
f = (: obj, func :);
Note that functionp() will return 0 if obj is not either a
valid object pointer or string, and if func is not a
string.
functionp() will return 2 if the function pointer is of
the format:
(: obj, ({ str, arg0, arg1, arg3, ... }) :)
SSEEEE AALLSSOO
mapp(3), stringp(3), pointerp(3), objectp(3), intp(3),
bufferp(3), floatp(3), nullp(3), undefinedp(3), errorp(3),
lpc/types/function
MudOS 5 Sep 1994 1