swipl-biocham.c 276 Bytes
Newer Older
Thierry Martinez's avatar
Thierry Martinez committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <stdio.h>
#include <SWI-Prolog.h>
#include <graphviz_swiprolog.h>

int
main(int argc, char **argv)
{
    install_graphviz_swiprolog();

    if (!PL_initialise(argc, argv)) {
        PL_halt(1);
    }

    PL_install_readline();

    PL_halt(PL_toplevel() ? 0 : 1);
}