in reply to Re: Using stderr from Inline::C: (part deux) (fileno/dup2)
in thread Using stderr from Inline::C: (part deux)
Thank you anonymonk. The last post in the subthread you linked showed the use of _write) which does what fwrite() does, but takes a fileno rather than stream handle, and that works just fine. Presumably because the fileno gets used to look up the appropriate stream stuff internally, and thus gets to use the correct expansion of __iob_func().
|
|---|