Is always protecting mallocs important? By protecting I mean:
char *test_malloc = malloc(sizeof(char) * 10000);
if (!test_malloc)
exit(EXIT_FAILURE);
I mean, in electronic devices, I don't doubt it's essential. But in programs I'm running on my own machine that I'm sure my allocation size will be positive and that the size will not be astronomical. Some people say, "Ah imagine there’s not enough memory in your computer at this moment."