+static void CheckError (const char* S, unsigned char Error)
+{
+ if (Error != MOUSE_ERR_OK) {
+ printf ("%s: %s(%d)\n", S, mouse_geterrormsg (Error), Error);
+ exit (EXIT_FAILURE);
+ }
+}
+
+
+
+static void DoWarning (void)
+/* Warn the user that a mouse driver is needed for this program */
+{
+ printf ("Warning: This program needs the mouse\n"
+ "driver with the name\n"
+ " %s\n"
+ "on disk! Press 'y' if you have it or\n"
+ "any other key to exit.\n", DRIVER);
+ if (cgetc () != 'y') {
+ exit (EXIT_SUCCESS);
+ }
+ printf ("Ok. Please wait patiently...\n");
+}
+
+
+