toascii() macro since we already include ctype.h.
SCCS-vsn: libexec/comsat/comsat.c 5.18
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)comsat.c 5.17 (Berkeley) %G%";
+static char sccsid[] = "@(#)comsat.c 5.18 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
{
register struct utmp *utp = &utmp[nutmp];
register char *cp;
{
register struct utmp *utp = &utmp[nutmp];
register char *cp;
if (!(cp = index(name, '@')))
return;
if (!(cp = index(name, '@')))
return;
if ((fi = fopen(name, "r")) == NULL)
return;
(void)fseek(fi, offset, L_SET);
if ((fi = fopen(name, "r")) == NULL)
return;
(void)fseek(fi, offset, L_SET);
* Print the first 7 lines or 560 characters of the new mail
* (whichever comes first). Skip header crap other than
* From, Subject, To, and Date.
* Print the first 7 lines or 560 characters of the new mail
* (whichever comes first). Skip header crap other than
* From, Subject, To, and Date.
}
/* strip weird stuff so can't trojan horse stupid terminals */
for (cp = line; (ch = *cp) && ch != '\n'; ++cp, --charcnt) {
}
/* strip weird stuff so can't trojan horse stupid terminals */
for (cp = line; (ch = *cp) && ch != '\n'; ++cp, --charcnt) {
if (!isprint(ch) && !isspace(ch))
ch |= 0x40;
(void)fputc(ch, tp);
if (!isprint(ch) && !isspace(ch))
ch |= 0x40;
(void)fputc(ch, tp);