Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!tut.cis.ohio-state.edu!attctc!bobc From: bobc@attctc.DALLAS.TX.US (Bob Calbridge) Newsgroups: comp.sys.ibm.pc Subject: Re: File Handles in Turbo C Summary: finally Message-ID: <8606@attctc.DALLAS.TX.US> Date: 10 Jul 89 22:54:20 GMT References: <2214@orion.cf.uci.edu> Distribution: na Organization: The Unix(R) Connection, Dallas, Texas Lines: 18 In article <2214@orion.cf.uci.edu>, dkrause@orion.cf.uci.edu (Doug Krause) writes: > > After "fopen"ing a file, how can I get a file handle? (I want to use > the function getftime.) FINALLY!!! A question I know the answer to. Use the fileno() function. example: (int) handle = fileno ((FILE *) internal_name); (actually I had to use this just the other day) Bob -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- = I know it's petty.......... = - But I have to justify my salary! - =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=