FILE descriptor <-> FILE pointers
R. Kannan
kannan at cerc.wvu.wvnet.edu
Sun Jun 18 17:39:05 AEST 1989
fdopen can be used to convert file descriptor to a FILE pointer
fileno can be used to convert a FILE pointer to file descriptor
A file descriptor is returned by open and used by dup, write, read etc
A FILE pointer is returned by fopen and used fprintf, fscanf , fget*
and printf and scanf (implicitly).
this is in response to some netters question about
conversion from FILE pointers to file descriptors and vice versa..
--kannan
:wq
More information about the Comp.unix.wizards
mailing list