Deleted Added
full compact
ppt.c (53920) ppt.c (54482)
1/*
2 * Copyright (c) 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

37 The Regents of the University of California. All rights reserved.\n";
38#endif /* not lint */
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)ppt.c 8.1 (Berkeley) 5/31/93";
43#endif
44static const char rcsid[] =
1/*
2 * Copyright (c) 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

37 The Regents of the University of California. All rights reserved.\n";
38#endif /* not lint */
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)ppt.c 8.1 (Berkeley) 5/31/93";
43#endif
44static const char rcsid[] =
45 "$FreeBSD: head/games/ppt/ppt.c 53920 1999-11-30 03:50:02Z billf $";
45 "$FreeBSD: head/games/ppt/ppt.c 54482 1999-12-12 06:30:46Z billf $";
46#endif /* not lint */
47
48#include <stdio.h>
49
46#endif /* not lint */
47
48#include <stdio.h>
49
50static void putppt();
50static void putppt(int);
51
51
52int
52main(argc, argv)
53 int argc;
54 char **argv;
55{
56 int c;
57 char *p;
58
59 (void) puts("___________");
60 if (argc > 1)
53main(argc, argv)
54 int argc;
55 char **argv;
56{
57 int c;
58 char *p;
59
60 (void) puts("___________");
61 if (argc > 1)
61 while (p = *++argv)
62 while ((p = *++argv))
62 for (; *p; ++p)
63 putppt((int)*p);
64 else while ((c = getchar()) != EOF)
65 putppt(c);
66 (void) puts("___________");
67 exit(0);
68}
69

--- 18 unchanged lines hidden ---
63 for (; *p; ++p)
64 putppt((int)*p);
65 else while ((c = getchar()) != EOF)
66 putppt(c);
67 (void) puts("___________");
68 exit(0);
69}
70

--- 18 unchanged lines hidden ---