Peter Shenkin wrote:
> Fine for stderr/stdout, but how to you find the C FILE*
> for a Fortran IO unit, in general?
You don't. There's no guarantee that such a correspondence exists. It
doesn't in several of the implementations I am familiar with. Even if
you can find such a correspondence, using that information is fraught
with peril, as the Fortran libraries may keep their own state about
things, such as pending buffers.
Steve Lionel
Software Products Development
Intel Corporation
Nashua, NH
|