I have a C-program as frontend to a Sicstus Prolog runtime. And I'm trying to create a list in C, fill it out and pass to the Prolog runtime. I have had a look at the C-library, but I don't find any information of how this should be done. I guess it is not a single function call that does this, but rather a combination(?)
I also see that there are several function-calls in the C-library that are related to this like (SP_put_list(), SP_put_list_codes(), SP_put_list_n_bytes(), SP_put_list_n_codes() )
The list I want to create is the list of opions to pass to labeling/2 like [leftmost,step,up,all], but I want to create and fill out this list at runtime, and pass it over to Sicstus Prolog.