|Don't ask to ask, just ask|
I'm using Inline::Pdlpp (similar to Inline::C) on a Unix platform.
Inside the C code, I print some stuff out using printf().
This works fine normally, but when I redirect output to a file, the output disappears. I.e. when I do:
the file output.txt does contain the text that was printed from Perl, but doesn't contain anything printed from C. The C output doesn't appear on the terminal either.
So I'm a bit mystified. Any clues?
(My script doesn't mess with STDOUT at all, I'm not doing anything peculiar. I'm a pretty inexperienced C programmer though, so maybe I'm missing something there - I don't need to explicitly select STDOUT in C, do I? I'm guessing not as when the script is run without redirecting the output, everything is fine).
Thanks and best wishes, andye