I'm currently in the process of learning to use OpenGL, and to start I'm following a series of tutorials from http://www.opengl-tutorial.org/.
In the first tutorial, they begin main() with this if-statement:
// Initialize GLFW
if (!glfwInit() )
{
fprintf( stderr, "failed to initialize GLFW\n" );
getchar();
return -1;
}
I understand that fprintf is an unbuffered print that's kind of the standard for indicating an error. And return -1 makes sense too. But what's the point of calling getchar() after indicating an error?
Thanks.