#include <sicstus/sicstus.h> int SP_set_argv(int argc, char **argv, spio_t_bits options);
argv prolog flag.
prolog_flag(argv,X). This argument is copied by
SP_set_argv()so it can be discarded by the caller. May be passed as
The encoding used when converting the entries to atoms is determined
optionsis zero then each entry in
argvis assumed to be an encoded string, i.e. encoded using ‘UTF-8’. This is the same as passing
SP_initialize()will not report failure even if the
argventries are not suitable as atom names. Note that UTF-8 may not be the encoding used by the operating system when invoking
each entry in
argv is assumed to be encoded using some system
encoding. This is only useful on Unix-like systems since it is
preferable, and trivial, to obtain and pass a UTF-8
The system encoding used by
SP_set_argv() will be the first
character encoding specified by the following environment variables:
LC_ALL (only on Unix)
LC_CTYPE (only on Unix)
LANG (only on Unix)
Please note: For best results on Unix-like platforms you should use a locale based on UTF-8.
Zero if the argument entries cannot be converted to atoms, and a nonzero value otherwise.
Initializing the Prolog Engine.