12.3.62 SP_predicate()

Synopsis

     #include <sicstus/sicstus.h>
     
     SP_pred_ref
     SP_predicate(char *name_string,
     	     long arity,
     	     char *module_string);

Returns a pointer to the predicate definition.

Arguments

name_string
Predicate name.
arity
Arity.
module_string
Module name, optional. NULL and "" (the empty string) both denote the type-in module (see ref-mod-tyi).

Return Value

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.

Description

Slower than SP_pred().

See Also

Calling Prolog from C.


Send feedback on this subject.