TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Paul Edwards
from: Frank Adam
date: 1996-01-16 08:18:04
subject: Re: Realloc

G'Day Paul,

-=> Quoting Paul Edwards to Frank Adam <=-
 
 FA> Don't forget to cast those to a long, if the allocated memory goes passed 
 FA> 655?? i forget:)..
 FA> it'll wrap around to 0 and that's what you'll allocate.Hence bye-bye data.

 PE> 65535 is the maximum you can store in an unsigned 16 bit field.
 PE> However, what you said above is not correct.  realloc takes
 PE> as a parameter a size_t value.  sizeof returns a size_t value.
 PE> that is quite sufficient.  If size_t only gets up to 65535, 
You're right of course,but it was farrealoc he asked about the first time.
 



  L8r Frank (fadam{at}ozemail.com.au)

___ Blue Wave/DOS v2.21

--- Maximus 3.00
* Origin: The Software Parlour (3:635/544)
SEEN-BY: 50/99 620/243 623/630 632/349 635/503 544 711/401 409 410 413 430
SEEN-BY: 711/510 808 809 932 934 712/515 713/888 714/906 800/1 7877/2809
@PATH: 635/544 50/99 711/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™.