Programming with X Starter Toolkit - 1

The students do not have to know anything about X, yet they are introduced to function pointers and the concept of callbacks.

/*	Window with Message      */

void hello()
{
	put_text("The end of the world is near", 20, 20);
}

main()
{
	vis_window(hello);
}