calloc() and xcalloc() takes nmemb and then size