BADADDR(3spp)
NAME
badaddr − test if a memory location can be read
SYNOPSIS
badaddr(addr, size)
DESCRIPTION
Badaddr returns 1 if reading the memory location addr causes a fault. If addr can be read without causing a fault, 0 is returned. Size should be one of "sizeof(char)", "sizeof(short)", or "sizeof(int)" and indicates the appropriate width for the read.