* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)special.c 8.1 (Berkeley) %G%";
c_special(fd1
, file1
, skip1
, fd2
, file2
, skip2
)
register off_t skip1
, skip2
;
register off_t byte
, line
;
if ((fp1
= fdopen(fd1
, "r")) == NULL
)
err("%s: %s", file1
, strerror(errno
));
if ((fp2
= fdopen(fd2
, "r")) == NULL
)
err("%s: %s", file1
, strerror(errno
));
for (byte
= line
= 1;; ++byte
) {
if (ch1
== EOF
|| ch2
== EOF
)
(void)printf("%6qd %3o %3o\n", byte
, ch1
, ch2
);
diffmsg(file1
, file2
, byte
, line
);
err("%s: %s", file1
, strerror(errno
));
err("%s: %s", file2
, strerror(errno
));