Getting the pathname from a FILE*.
Karl Berry.
karl at umb.umb.edu
Sat Jul 9 07:38:02 AEST 1988
The title says it all. Am I missing something obvious?
The pathname doesn't seem to be a field in either the
_iobuf or the structure returned by stat.
ttyname or ctermid will give you the pathname
of your terminal, but I want the pathname of an
arbitrary FILE* I have fopen. Or am I missing some
reason why this is not feasible?
Karl.
karl at umb.edu ...!harvard!umb!karl
More information about the Comp.unix.wizards
mailing list