The command line arguments passed to Prolog can be accessed from C
through QP_argv
and QP_argc
. These are similar to argc
and argv
of the main()
API, except that they only store
Prolog's arguments. In <quintus/quintus.h>
they are classed as
extern int QP_argc extern char **QP_argv