TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: GEORGE WHITE
from: ANTHONY TIBBS
date: 1998-03-11 18:57:00
subject: Re: Strange allocation error

 AT>int main (void)
 AT>{
 AT>char *x;
 
 AT>   printf ("Free mem=%ld\n", coreleft();
 GW> You need to cast the return from coreleft to unsigned long, as in
 GW> small model coreleft() returns an unsigned int, and also change the
 GW> print format specifier to match. So you need:
Already tried..
 GW> I found xxxx:0004 everytime in large model, with xxxx the same for
 Ah, but the xxxx is >ALWAYS< 0000
 GW> every run under the same conditions but varied between IDE and
 GW> standalone.
 It was always the same, regardless of the IDE/etc.
Take care,
Anthony Tibbs
... All I need is a Wave and a board to surf it on.
--- Blue Wave/DOS v2.30 [NR]
---------------
* Origin: The Tibbs' Point - Ottawa, ON, Canada - Pvt (1:163/215.38)

SOURCE: echomail via exec-pc

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