Skip to content

drbeco/tgit

Repository files navigation

##PLC - Prolog calls C ###A simple Prolog module to be called by a C program.

####Summary

This example shows a factorial function written in prolog that can be called by a C program.

Testing gpg....

####Description

Sometimes a task is too much high level to be implemented in pure C (although its always possible, as C is such a universal language). In that case you might want to call a library written in another language.

Prolog is just one of so many languages that smoothly integrates with C. What makes Prolog special is its ability to proccess high levels of knowledge, iterate, deduct facts, and so on. Also, its list proccessing capacity is pretty amazing (that alone would justify its use together with a C program).

Now, how to do that? Easy. Just take a look at this example. It has all you need to start. Source is available.

Use it as a skeleton for your work.

In appreciation

Dr. Beco


Testing embedded images

![Project Euler](https://raw.githubusercontent.com/username/projectname/branch/path/to/img.png)

Don't share solutions

####Program details


####Copyright, License and Warranty

copyright (c) 2015 GNU GPL v3

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 3 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA. 02111-1307, USA. Or read it online at <http://www.gnu.org/licenses/>.


Template by Dr. Beco Version 20150619.231433

Packages

No packages published

Languages