Xref: utzoo comp.lang.c:20801 comp.unix.questions:15728 comp.unix.wizards:17702
Path: utzoo!attcan!uunet!peregrine!ccicpg!cci632!rit!tropix!moscom!ur-valhalla!uhura.cc.rochester.edu!rochester!rutgers!gatech!uflorida!haven!h.cs.wvu.wvnet.edu!cerc.wvu.wvnet.edu!kannan
From: kannan@cerc.wvu.wvnet.edu (R. Kannan)
Newsgroups: comp.lang.c,comp.unix.questions,comp.unix.wizards
Subject: FILE descriptor <-> FILE pointers
Keywords: FILE descriptors, FILE pointers, fdopen, fileno ...
Message-ID: <148@cerc.wvu.wvnet.edu.edu>
Date: 22 Jul 89 07:39:05 GMT
Sender: news@cerc.wvu.wvnet.edu
Lines: 16


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