FILE* fdopen(int fd);
Opens a file stream using file handle fd. Returns the file stream.
File stream pointers (FILE*) are actually just file handles cast to a pointer type. The implementation of this function is actually a simple macro with a direct cast to the FILE* type. |