-/* Copyright (c) 1979 Regents of the University of California */
+/* Copyright (c) 1980 Regents of the University of California */
+static char *sccsid = "@(#)expreserve.c 6.1 10/18/80";
#include <stdio.h>
#include <ctype.h>
#include <sys/types.h>
if (read(0, (char *) &H, sizeof H) != sizeof H) {
format:
if (name == 0)
- fprintf(stderr, "Buffer format error\n");
+ fprintf(stderr, "Buffer format error\t");
return (-1);
}
if (dcp[-1] == 'z') {
dcp[-1] = 'a';
if (dcp[-2] == 'z')
- fprintf(stderr, "Can't find a name\n");
+ fprintf(stderr, "Can't find a name\t");
dcp[-2]++;
} else
dcp[-1]++;
if (fname[0] == 0) {
fprintf(mf,
"A copy of an editor buffer of yours was saved when %s.\n",
- flag ? "the system went down" : "your phone was hung up");
+ flag ? "the system went down" : "the editor was killed");
fprintf(mf,
"No name was associated with this buffer so it has been named \"LOST\".\n");
} else
fprintf(mf,
"A copy of an editor buffer of your file \"%s\"\nwas saved when %s.\n", fname,
- flag ? "the system went down" : "your phone was hung up");
+ /*
+ * "the editor was killed" is perhaps still not an ideal
+ * error message. Usually, either it was forcably terminated
+ * or the phone was hung up, but we don't know which.
+ */
+ flag ? "the system went down" : "the editor was killed");
fprintf(mf,
"This buffer can be retrieved using the \"recover\" command of the editor.\n");
fprintf(mf,