FILEPTR - get file pointer corresponding to file descriptor.

(Compatible with UNIX System V C)

Usage:

#include <fildes.h>
f = fileptr( fd );

Where:

int fd;
is the file descriptor of an open file (as returned by "open" or "creat").
FILE *f;
is the corresponding file pointer.

Description:

"fileptr" returns the file pointer corresponding to a file descriptor. It returns NULL if the given file descriptor is not open, or it out of range.

See Also:

expl c lib creat

expl c lib fileno

expl c lib open

expl c lib fopen

expl c include fildes

Copyright © 1996, Thinkage Ltd.