fwrite()
is declared as this.
size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);
But the actual number of bytes written is just size * nmemb. So why not just specify the number of bytes? Why it is necessary to specify both size and nmemb? Thanks.