printf/libft/ft_calloc.c
/* allocates block of memory for array of num elements.
* each of them size long, and starts all bits as 0.
* basically logic check for buffer.
* if buffer is not = malloc size * count
* return a null.
*otherwise call bzero, and return the ptr with 
* allocated space of buffer size * count. */
allocates block of memory for array of num elements.
each of them size long, and starts all bits as 0.
basically logic check for buffer.
if buffer is not = malloc size * count
return a null.
otherwise call bzero, and return the ptr with
allocated space of buffer size * count.
allocates block of memory for array of num elements . each of them size long and starts all bits as 0 . basically logic check for buffer . if buffer is not = malloc size * count return a null . otherwise call bzero and return the ptr with allocated space of buffer size * count .
void	*ft_calloc(size_t count, size_t size)
{
	void	*ptr;
	ptr = malloc(count * size);
	if (!ptr)
		return (NULL);
	ft_bzero(ptr, (count * size));
	return (ptr);
}
void * ft_calloc ( size_t count , size_t size ) { void * ptr ; ptr = malloc ( count * size ) ; if ( ! ptr ) return ( NULL ) ; ft_bzero ( ptr , ( count * size ) ) ; return ( ptr ) ; }
allocates block of memory for array of num elements.
allocates block of memory for array of num elements .