[futurebasic] Re: [FB] Disposing of a Pointer

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2012 : Group Archive : Group : All Groups

From: Robert Purves <listrp@...>
Date: Wed, 11 Jan 2012 11:11:20 +1300
Max Taylor wrote:

> Is there anything while using malloc that would compare to NewPtrClear to make sure the returned memory space is cleared to start with?

p = fn malloc( 4096 ) // not zeroed 

Both of these zero the allocated block:
p = fn calloc( 4096, 1 )
p = fn calloc( 1, 4096 )