This is the mail archive of the
guile@cygnus.com
mailing list for the Guile project.
Re: Getting a (FILE *) from a file descriptor
- To: Ian Grant <I.A.N.Grant@damtp.cam.ac.uk>
- Subject: Re: Getting a (FILE *) from a file descriptor
- From: Ken Raeburn <raeburn@raeburn.org>
- Date: 24 Jun 1999 03:10:23 -0400
- Cc: Gary Houston <ghouston@easynet.co.uk>, guile@cygnus.com
- References: <Pine.LNX.3.96.990620170906.28203E-100000@susy.amtp.cam.ac.uk>
Ian Grant <I.A.N.Grant@damtp.cam.ac.uk> writes:
> Oops, it's fdopen isn't it? I was even staring at the man page. Sorry.
Well, fdopen is okay, but calling fclose will result in the file
descriptor being closed. A dup and fdopen would probably work more
cleanly. (You are going to make sure the FILE* gets closed, right?)