Why do you print "Memory fault -- core dumped"? There will be neither a memory fault nor will the core be dumped, if you simply prevent a memory fault (accessing the NULL pointer) from occurring in the first place.
The correct thing to do here would be to check errno.
Why do you print "Memory fault -- core dumped"? There will be neither a memory fault nor will the core be dumped, if you simply prevent a memory fault (accessing the NULL pointer) from occurring in the first place.
The correct thing to do here would be to check errno.
You have 4 clocks (technically 5) and 3 calendars on your desktop...
Then stop crying about it and do it. If you make decisions based on what people you dislike do, you might as well stop breathing too.
You might find interesting: PyYAML, Python 3.6 f-strings, os.path.join, os.makedirs(..., exist_ok=True), colorama.