The example shows how to get version information.
Output
$ ./version
Hello, this is clingo version...
Code
#include <stdlib.h>
#include <stdio.h>
int main() {
int major, minor, revision;
printf("Hello, this is clingo version %d.%d.%d.\n", major, minor, revision);
return 0;
}
CLINGO_VISIBILITY_DEFAULT void clingo_version(int *major, int *minor, int *revision)
Obtain the clingo version.