[lug] File descriptor from *file?

Chip Atkinson chip at rmpg.org
Thu Aug 29 13:16:07 MDT 2002


I found it just now.  Sorry for the bother.  The answer is
fileno (I found it in the perl manual thru google and then checked the C
function).

Chip
On Thu, 29 Aug 2002, Chip Atkinson wrote:

> Greetings,
>
> Does anyone know what the libc function call is to get the file descriptor
> from a *FILE?  I'm pretty sure that there is a function rather than just
> having to dig into the FILE struct itself. Oh, this is for C.
>
> Thanks in advance.
>
> Chip
>
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
>




More information about the LUG mailing list