Comment Comment by kvemkon > the program should check for a null pointer and gracefully exit if one is found: ...If malloc() fails, there is no need to exit the program completely with exit(), only return from the current function with an error. parent kvemkon 22 days ago
If malloc() fails, there is no need to exit the program completely with exit(), only return from the current function with an error.