libexplain  1.4.D001
Functions
libexplain/is_efault/path.c File Reference
#include <libexplain/ac/errno.h>
#include <libexplain/ac/sys/stat.h>
#include <libexplain/is_efault.h>

Go to the source code of this file.

Functions

int explain_is_efault_path (const char *path)

Function Documentation

int explain_is_efault_path ( const char *  path)

The explain_is_efault_path function may be used to determine whether or not a path pointer is a valid pointer. Typically this is used when handling ambiguous EFAULT situations.

Parameters:
pathThe path to be checked.
Returns:
int; 1 if the path is bad (points outside the process address space), or 0 if the path is OK.

Definition at line 27 of file path.c.