Hi there,
what is the proper format to represent an optional argument
in the LinkDef.h file ? This is with regards to the printw function
of the ncurses library, whose declaration is
int printw(const char*, …);
I.e., it has optional arguments that can, but do not have to be
there. So far I have represented this function as
#pragma link C++ function printw;
which I believe is the proper form for functions that take only
one argument (?). Indeed, I can - using my custom root interpreter
with ncurses extension - print characters and strings using printw,
e.g. in the form
move(10,10); printw(“Hello World”);
I have now tried something along the lines of
printw("%d",max_entry);
where max_entry is an integer. This prints 0, where a “cout” of
max_entry shows the proper number. I believe that this could be
due to an incorrect LinkDef entry for printw.
Any idea ?
Thanks for the help,
Ruediger