Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!xanth!mcnc!unccvax!cs75jmc From: cs75jmc@unccvax.UUCP (john m covington) Newsgroups: comp.sys.ibm.pc Subject: Re: File Handles in Turbo C Message-ID: <1549@unccvax.UUCP> Date: 10 Jul 89 13:07:48 GMT References: <2214@orion.cf.uci.edu> Distribution: na Organization: Univ. of NC at Charlotte, Charlotte, NC Lines: 22 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.) > > Douglas Krause CA Prop i: Ban Gummie Bears(tm)! In most C systems, you would use the fileno() function (on some systems it may be a macro). e.g.: FILE *fa; int fd; ... fd = fileno(fa); would put the file handle in fd. Of course in the function call to getftime you could just put the fileno function in the argument list. I'm not familiar with getftime but it might look like this: getftime(fileno(fa),&result);