Deleted Added
full compact
lptest.c (19202) lptest.c (78146)
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 25 unchanged lines hidden (view full) ---

34
35#ifndef lint
36static char copyright[] =
37"@(#) Copyright (c) 1983, 1993\n\
38 The Regents of the University of California. All rights reserved.\n";
39#endif /* not lint */
40
41#ifndef lint
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 25 unchanged lines hidden (view full) ---

34
35#ifndef lint
36static char copyright[] =
37"@(#) Copyright (c) 1983, 1993\n\
38 The Regents of the University of California. All rights reserved.\n";
39#endif /* not lint */
40
41#ifndef lint
42#if 0
42static char sccsid[] = "@(#)lptest.c 8.1 (Berkeley) 6/6/93";
43static char sccsid[] = "@(#)lptest.c 8.1 (Berkeley) 6/6/93";
44#endif
45static const char rcsid[] =
46 "$FreeBSD: head/usr.sbin/lpr/lptest/lptest.c 78146 2001-06-12 16:38:20Z gad $";
43#endif /* not lint */
44
45#include <stdlib.h>
46#include <stdio.h>
47
48/*
49 * lptest -- line printer test program (and other devices).
50 */
51int
47#endif /* not lint */
48
49#include <stdlib.h>
50#include <stdio.h>
51
52/*
53 * lptest -- line printer test program (and other devices).
54 */
55int
52main(argc, argv)
53 int argc;
54 char **argv;
56main(int argc, char **argv)
55{
56 int len, count;
57{
58 int len, count;
57 register i, j, fc, nc;
59 register int i, j, fc, nc;
58 char outbuf[BUFSIZ];
59
60 setbuf(stdout, outbuf);
61 if (argc >= 2)
62 len = atoi(argv[1]);
63 else
64 len = 79;
65 if (argc >= 3)

--- 18 unchanged lines hidden ---
60 char outbuf[BUFSIZ];
61
62 setbuf(stdout, outbuf);
63 if (argc >= 2)
64 len = atoi(argv[1]);
65 else
66 len = 79;
67 if (argc >= 3)

--- 18 unchanged lines hidden ---