prettyness police
[unix-history] / usr / src / usr.bin / cmp / misc.c
... / ...
CommitLineData
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * %sccs.include.redist.c%
6 */
7
8#ifndef lint
9static char sccsid[] = "@(#)misc.c 8.2 (Berkeley) %G%";
10#endif /* not lint */
11
12#include <sys/types.h>
13
14#include <err.h>
15#include <stdio.h>
16#include <stdlib.h>
17
18#include "extern.h"
19
20void
21eofmsg(file)
22 char *file;
23{
24 if (!sflag)
25 warnx("EOF on %s", file);
26 exit(DIFF_EXIT);
27}
28
29void
30diffmsg(file1, file2, byte, line)
31 char *file1, *file2;
32 off_t byte, line;
33{
34 if (!sflag)
35 (void)printf("%s %s differ: char %qd, line %qd\n",
36 file1, file2, byte, line);
37 exit(DIFF_EXIT);
38}