| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| 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™.