Is malloc() or calloc() "better"?

Darin Johnson darin at nova.laic.uucp
Fri Jan 6 04:21:19 AEST 1989


Actually, calloc() is not always a shell around malloc()!  On an early
Pyramid, I had spent lots of wasted time tracking down a bug, that fixed
itself when I used free() for malloc()ed objects, and cfree() for
calloc()ed objects.  In the buggy version, free() was used for
everything...

Darin Johnson (leadsv!laic!darin at pyramid.pyramid.com)
	"You can't fight in here! This is the war room.."



More information about the Comp.lang.c mailing list