libexplain  1.4.D001
Functions
libexplain/dir_to_fildes.h File Reference
#include <libexplain/ac/dirent.h>

Go to the source code of this file.

Functions

int explain_dir_to_fildes (DIR *dir)

Function Documentation

int explain_dir_to_fildes ( DIR *  dir)

The explain_dir_to_fildes function may be used to extract the file descriptor from a DIR pointer, but carefully.

Parameters:
dirThe DIR of interest
Returns:
file descriptor, or -1 on error

Definition at line 25 of file dir_to_fildes.c.