Next: cpg-ref-SP_printf, Previous: cpg-ref-SP_pred, Up: cpg-bif [Contents][Index]
SP_predicate()
#include <sicstus/sicstus.h> SP_pred_ref SP_predicate(char *name_string, SP_integer arity, char *module_string);
Returns a pointer to the predicate definition.
Predicate name.
Arity.
Module name, optional. NULL
and ""
(the empty string)
both denote the type-in module (see ref-mod-tyi).
The reference if the predicate is found,
NULL
otherwise with error code PRED_NOT_FOUND
or, if one of the string arguments are malformed, INV_STRING
.
Slower than SP_pred()
.