BADADDR(3spp) RISC/os Reference Manual BADADDR(3spp)
NAME
badaddr - test if a memory location can be read
SYNOPSIS
int 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.
SEE ALSO
nofault(3spp)
Printed 1/6/92 Page 1