libexplain  1.4.D001
Functions
libexplain/fildes_is_dot.c File Reference
#include <libexplain/ac/fcntl.h>
#include <libexplain/ac/sys/stat.h>
#include <libexplain/fildes_is_dot.h>

Go to the source code of this file.

Functions

int explain_fildes_is_dot (int fildes)

Function Documentation

int explain_fildes_is_dot ( int  fildes)

The explain_fildes_is_dot function may be used to determin whether a given file descritor refers to the current directory.

Parameters:
fildesThe file descriptor to be checked.
Returns:
int; 0 (false) if fildes does not refer to the currnt directory; non-zero (true) if files does refer to th currnt directory.
Note:
If there are any errors, it will just return 0 (false).

Definition at line 27 of file fildes_is_dot.c.