Clingo C API
C API for clingo providing high level functions to control grounding and solving.
Main Page
Modules
Classes
Files
Examples
version.c
The example shows how to get version information.
Output
$ ./version
Hello,
this
is clingo version...
Code
#include <
clingo.h
>
#include <stdlib.h>
#include <stdio.h>
int
main() {
int
major, minor, revision;
clingo_version
(&major, &minor, &revision);
printf(
"Hello, this is clingo version %d.%d.%d.\n"
, major, minor, revision);
return
0;
}
Generated on Thu Aug 18 2016 13:19:52 for Clingo C API by
1.8.11