As documented, this one returns size_t
but the declaration in SWI-Prolog.h is actually
PL_EXPORT(int) PL_functor_arity(functor_t f);
OTOH, there is also
PL_EXPORT(size_t) PL_functor_arity_sz(functor_t f);
which returns size_t
instead
Did you know ... | Search Documentation: |
PL_functor_arity() |
As documented, this one returns size_t
but the declaration in SWI-Prolog.h is actually
PL_EXPORT(int) PL_functor_arity(functor_t f);
OTOH, there is also
PL_EXPORT(size_t) PL_functor_arity_sz(functor_t f);
which returns size_t
instead