Clingo C API
C API for clingo providing high level functions to control grounding and solving.
Loading...
Searching...
No Matches
version.c

The example shows how to get version information.

The example shows how to get version information.

Output

$ ./version
Hello, this is clingo version...

Code

#include <clingo.h>
#include <stdio.h>
#include <stdlib.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;
}
Single header containing the whole clingo API.
CLINGO_VISIBILITY_DEFAULT void clingo_version(int *major, int *minor, int *revision)
Obtain the clingo version.