Description
Asserts whether a memory block is readable.
Syntax
int PurifyAssertIsReadable(const void *addr, int size)
addr |
The address of the memory block you want to check. |
size |
The number of bytes that you want to check in the memory block. |
Returns
1 |
The memory block is readable. |
0 |
The memory block is not readable. |
Notes
§ If the memory block is not readable, Purify generates one of the following messages in the Error View: Array Bounds Read (ABR), Beyond Stack Read (BSR), Free Memory Read (FMR), Invalid Pointer Read (IPR), Null Pointer Read (NPR), or Uninitialized Memory Read (UMR).
§ To check whether a memory block is readable without generating messages in the Error View, use PurifyIsReadable.
(C) Copyright IBM Corporation 1992, 2010.