initialize_bprolog(int argc, char *argv[])In addition, the environment variable BPDIR must be set correctly to be the home directory where B-Prolog is installed. The function initialize_bprolog() allocates all the stacks used in B-Prolog, initializes them, and loads the byte code file bp.out into the program area. There are two possible ways to call B-Prolog.
call_bprolog_string("load(myprog)") call_bprolog_string("X is 1+1") call_bprolog_string("p(X,Y),q(Y,Z)")