As per Why malloc+memset is slower than calloc?
malloc+memset is slower than calloc under certain conditions.
Why wasn't calloc written in such a way that it can take an extra value argument ( like memset) to override default assignment by zero? What would have been the effect of that if it were done?