TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Paul Edwards
from: Kieran Haughey
date: 1995-12-29 09:34:36
subject: Realloc()

On 26 Dec 95 11:10, Paul Edwards wrote to Kieran Haughey:

Hi Paul,

KH>> But isn't realloc mean't to be realloc(how_many, size_of_each_member)??...

PE> No, that's calloc.  realloc() needs the old buffer, and a byte
PE> count (same as malloc).  Look it up in the ANSI_C.* from 3:711/934.

Ah.. so that's why you told me to get ANSI_C.* :).. I found this out by
having a look at thelp :).. after I wrote and packed that message :)..

I managed to get a little test which collected keys from the keyboard and
realloc'ed when needed.. problem was when I tried it in my program.. it
basically died.. it would realloc them fine.. except that most of the data
would be garbled when I check it with the IDE Debugger :(.. 
ÿ
Happy New Year,
Kieran

3:711/413.17{at}fidonet
@EOT:

--- MsgedSQ 3.30
* Origin: -=> The Last Stand Against Sanity <=- (3:711/413.17)
SEEN-BY: 50/99 620/243 623/630 711/401 409 410 413 420 423 430 510 808 809
SEEN-BY: 711/932 934 712/515 713/888 714/906 800/1 7877/2809
@PATH: 711/413 808 809 934

SOURCE: echomail via fidonet.ozzmosis.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™.