So ... there will be no problem if foo() and print() write to different streams. And if foo() and print() do need to write to the same stream then there's *nothing* I can do to ensure that the output will not be garbled. Is that what the above quote is telling me ?
I'm just trying to get an understanding of what *can* and *can't* be done here. I know I can't use fputs() in XSubs (I've tried), but I had hoped it would be possible to have ab XSub safely and sanely call an external C library function that uses fputs().
.