O'Reilly logo
  • Ivan Petrov thinks this is interesting:

The function fdopen( ) converts an already open file descriptor (fd) to a stream:

#include <stdio.h>

FILE * fdopen (int fd, const char *mode);

From

Cover of Linux System Programming

Note

opening file descriptors