Coder's Guild Mailing List

calloc vs. malloc

Posted by Frank Hale on 2000-07-15

I have an interesting situation in a C program I am writing where if I use malloc to allocate memory my program crashes but if I use calloc everything seems fine. Anyone know why something like that may happen?

Frank

---
ICQ# 7205161
http://sapphire.sourceforge.net - Yet Another X11 Window Manager


Get your FREE Email and Voicemail at Lycos Communications - http://comm.lycos.com