TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: David George 72240,134 (X)
from: Bob van der Poel 76510,2203
date: 1993-08-06 21:29:40
subject: #18510-#malloc() problem

#: 18512 S12/OS9/68000 (OSK)
    06-Aug-93  21:29:40
Sb: #18510-#malloc() problem
Fm: Bob van der Poel 76510,2203
To: David George 72240,134 (X)

Not sure about this...but from your message I gather that malloc() is returning
a value, but you think it is an incorrect one. Could it be that you have
assigned 'ptr' a malloc() value earlier, then done a free() to return that
memory to the heap, and then called malloc() again...in which case the same
memory would be assigned?

Mind you, there could be a bug in malloc()...but I've used it a lot and never
had any problems which I couldn't track down to my own stupidity.

There is 1 Reply.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.