Source Code File 00-00_ncurses_version

00-00_ncurses_version.c

#include <ncurses.h>

int main()
{
	printf("Ncurses version %d.%d.%d\n",
			NCURSES_VERSION_MAJOR,
			NCURSES_VERSION_MINOR,
			NCURSES_VERSION_PATCH
		  );
	
	/* clean-up */
	return 0;
}

Output

Ncurses version 6.3.20211021

Notes

* The version numbers you see reflect the current library version installed on the system. The output above reflects the version available on my work computer as the book goes to press.