libexplain  1.4.D001
Functions
libexplain/is_efault/string.c File Reference
#include <libexplain/ac/errno.h>
#include <libexplain/ac/string.h>
#include <libexplain/ac/sys/mman.h>
#include <libexplain/ac/unistd.h>
#include <libexplain/is_efault.h>

Go to the source code of this file.

Functions

int explain_is_efault_string (const char *data)

Function Documentation

int explain_is_efault_string ( const char *  data)

The explain_is_efault_string function may be used to determine whether or not a C string is valid. Typically this is used when handling ambiguous EFAULT situations.

Parameters:
dataPointer to the base address of the memory to be checked.
Returns:
int; 1 if the C string is bad (points outside the process address space), or 0 if the C string is OK.

Definition at line 29 of file string.c.