Next: , Previous: , Up: cpg-bif   [Contents][Index]


12.3.62 SP_pred()

Synopsis

#include <sicstus/sicstus.h>

SP_pred_ref
SP_pred(SP_atom name_atom,
        SP_integer arity,
        SP_atom module_atom);

Returns a pointer to the predicate definition.

Arguments

name_atom

Predicate name.

arity

Arity.

module_atom

Module name.

Return Value

The reference if the predicate is found, NULL otherwise with error code PRED_NOT_FOUND.

Description

Faster than SP_predicate().

See Also

Calling Prolog from C.


Send feedback on this subject.