Did you know ... Search Documentation:
Calling Prolog from C