Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Where do I find examples mixing C and Prolog?

examples mixing prolog
0
Posted

Where do I find examples mixing C and Prolog?

0

You can download one or more of the packages. There is a complicated example in the form of an TeX tokeniser in the html subdirectory of the sources. There are a couple of examples in the src/win32/ subtree of the sources for handling Windows API. Finally, there is the SWI-Prolog source-code itself that uses the foreign interface for realising many of the build-in predicates. The function is normally called pl_. See pl-ext.c for the function-names of all predicates. Note however that the system itself sometimes uses more low-level constructs to manipulate Prolog data. Never use functions that have no prototype in SWI-Prolog.h or SWI-Stream.h.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123