calloc prototype is void *calloc(size_t nmemb, size_t size); not void *calloc(size_t size, size_t nmemb)...