I need to call a function in a shared object with this signature:
init_dialog(FIL E *input, FILE *output)
The FILE*'s are to stdin and stdout.
The call from python is libdialog.init_ dialog( x, y)
I need to define x and y so that they will have the structure of
sys.stdin and sys.stdout; the called function (init_dialog) is using a
(std?) function fileno to extract the fileno from the FILE* describing
stdin and stdout.
How can I do this?
--
I have seen the future and I'm not in it!
init_dialog(FIL E *input, FILE *output)
The FILE*'s are to stdin and stdout.
The call from python is libdialog.init_ dialog( x, y)
I need to define x and y so that they will have the structure of
sys.stdin and sys.stdout; the called function (init_dialog) is using a
(std?) function fileno to extract the fileno from the FILE* describing
stdin and stdout.
How can I do this?
--
I have seen the future and I'm not in it!
Comment