This is the mail archive of the guile@cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Getting a (FILE *) from a file descriptor


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?)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]