12-22-04 10:54 PM
"termbios" <meson@techemail.com> writes:
>I get a FILE * pointer by calling popen. Now I want to change it into a
>file descriptor. Is there a function call for it? Like fdopen create a
>FILE* out of a file descriptor.
You probably want int fileno(FILE *);
but it doesn't really "change" the file pointer to a descriptor -
it provides the descriptor associated with the already open file pointer.
--
Chris.
[ Post a follow-up to this message ]
|