TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: TOM TORFS
from: DARIN MCBRIDE
date: 1998-03-19 19:33:00
subject: atoi(const char .s)

 TT> Darin McBride wrote in a message to Simon Law:
 DM> char* sTemp = malloc(TEMP_LEN) * sizeof(char)); /* 
 DM> Woops - make that "malloc(TEMP_LEN * sizeof(char))" - had an extra
 DM> parenthesis there.  :-)
 TT> Even easier is to make that malloc(TEMP_LEN), as sizeof(char)==1.
Tom, I never do that.  I like specifying the sizeof in all cases - I find it 
much more consistant.  :-)
---
---------------
* Origin: Tanktalus' Tower BBS (1:250/102)

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