home *** CD-ROM | disk | FTP | other *** search
- /*
- * lemstop.c - quit and error returns from lemming.
- *
- * copyright (c) by Alan W. Paeth, 1987. All rights reserved.
- */
-
- #include "lem.h"
-
- quitconfirm()
- {
- char c;
- if (changes)
- {
- msgpost("quit: [y] to confirm: ");
- c = getstroke();
- if (UC(c) != 'Y')
- {
- msgpost("quit aborted.");
- return(1);
- }
- }
- markdelete();
- stop();
- exit(0);
- }
-
- err(msg, arg)
- char *msg;
- {
- fprintf(stderr, "\nlem: ", msg, arg);
- fprintf(stderr, msg, arg);
- fprintf(stderr, "\n");
- exit(1);
- }
-