Why does memset take an int instead of a char?
memset predates (by quite a bit) the addition of function prototypes to C. Without a prototype, you can’t pass a char to a function — when/if you try, it’ll be promoted to int when you pass it, and what the function receives is an int. It’s also worth noting that in C, (but not in … Read more