TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: David George 72240,134 (X)
from: Zack Sessions 71532,1555
date: 1993-08-08 15:42:45
subject: #18516-malloc() problem

#: 18518 S12/OS9/68000 (OSK)
    08-Aug-93  15:42:45
Sb: #18516-malloc() problem
Fm: Zack Sessions 71532,1555
To: David George 72240,134 (X)

 > I found the problem.  It is odd though that the address of the pointer was
 > the same before the call to malloc() and after, but I checked my other
 > programs and it did work the same way.  It wasn't a problem with malloc,
 > it was right after the call to malloc().

I think if you not run your compile through the optimize step, you would have
seen things happen in the order you expected them to happen in.

------------------------------------
 Zack C Sessions
 ColorSystems

 via InfoXpress/OSK by Bill Dickhaus

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™.