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

KH> H5, what happens if I declare it as an an unsigned int, and 
KH> then typecast the sizeof to a unsigned int, do I still need 
KH> to cast the cur_arr_size?..
FA> Sizeof already returns size_t, and cur_arr_size should be an unsigned for 
FA> realloc().

No, cur_arr_size can be a signed integer.  It will be promoted
to an unsigned int when multiplied by the sizeof value.  
BFN.  Paul.
@EOT:

---
* Origin: X (3:711/934.9)

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