err.h is not available under Windows and the goal of this example is not to learn how to get around that problem ;)