PurifyAssertIsWritable

Example       Related Topics

Description

Asserts whether a memory block is writable.

Syntax

int PurifyAssertIsWritable(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 writable.

0

The memory block is not writable.

Notes

§      If the memory is not writable, Purify generates one of the following messages in the Error View: Array Bounds Write (ABW), Beyond Stack Write (BSW), Free Memory Write (FMW), Invalid Pointer Write (IPW), or Null Pointer Write (NPW).

§      To check whether a memory block is writable without generating messages in the Error View, use PurifyIsWritable.

(C) Copyright IBM Corporation 1992, 2010.