Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!rpi!bu.edu!orc!inews!iwarp.intel.com!gargoyle!igloo!ddsw1!obdient!vpnet!akcs.dgy From: akcs.dgy@vpnet.chi.il.us (Donald Yuniskis) Newsgroups: comp.lang.c Subject: FILE *foo to filename? Keywords: inode, filename Message-ID: <272cd831-5edcomp.lang.c@vpnet.chi.il.us> Date: 30 Oct 90 02:55:03 GMT Lines: 5 Given: FILE *foo; whats a clean way of obtaining the filename assoctiated with foo? An initial thought is stat(fileno(foo)..) to get inode number but then what? Any help is appreciated... thx, dgy