| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Realloc |
On 18 Jan 96 22:33, Paul Edwards wrote to Frank Adam:
Hi Paul,
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().
PE> No, cur_arr_size can be a signed integer. It will be promoted
PE> to an unsigned int when multiplied by the sizeof value.
Hmm.. but aren't the memory requirements for an unsigned long the same as a
signed long, therefore it shouldn't really matter what it should be.. btw,
I should have said unsigned long before :).
Hmm.. I think my memory is begining to start failing me :)
ÿ
Cheers,
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™.