1 /* banner - print a banner Author: Brian Wallis */
3 /*****************************************************************
7 * This is a PD version of the SYS V banner program (at least I think
8 * it is compatible to SYS V) which I wrote to use with the clock
11 ** 14623 North 49th Place
12 ** Scottsdale, AZ 85254
13 * and published in the net comp.sources.misc newsgroup in early July
14 * since the BSD banner program works quite differently.
16 * There is no copyright or responsibility accepted for the use
19 * Brian Wallis, brw@jim.odr.oz, 4 July 1988
21 *****************************************************************/
26 int main(int argc
, char **argv
);
29 " @@@ @@ @@ @ @ @@@@@ @@ @@@ ",
30 " @@@ @@ @@ @ @ @ @ @@@ @ @ @ @@@ ",
31 " @@@ @ @ @@@@@@@@ @ @@ @ @@ @ ",
32 " @ @ @ @@@@@ @ @@@ @ ",
33 " @@@@@@@ @ @ @ @ @ @ ",
34 " @@@ @ @ @ @ @ @ @@ @ @ ",
35 " @@@ @ @ @@@@@ @ @@ @@@@ @ ",
40 " @ @ @@@@@@@ @@@@@ @@@ @@@@@ @ ",
42 " @ @ @ @ @ @ @@@ @ ",
45 " @@@ @ @@@@@ @@@@@ @ @@@@@@@ @@@@@ @@@@@@@",
46 " @ @ @@ @ @@ @@ @ @ @ @@ @ ",
47 "@ @ @ @ @ @ @@ @ @ @ @ ",
48 "@ @ @ @ @@@@@ @@@@@ @@@@@@@ @@@@@ @@@@@@ @ ",
49 "@ @ @ @ @ @ @ @@ @ @ ",
50 " @ @ @ @ @ @ @ @ @@ @ @ ",
51 " @@@ @@@@@ @@@@@@@ @@@@@ @ @@@@@ @@@@@ @ ",
53 " @@@@@ @@@@@ @@@ @ @ @@@@@ ",
54 "@ @@ @ @@@ @@@ @ @ @ @",
55 "@ @@ @ @@@ @ @@@@@ @ @",
56 " @@@@@ @@@@@@ @@@ @ @ @@ ",
57 "@ @ @ @@@ @ @@@@@ @ @ ",
59 " @@@@@ @@@@@ @@@ @ @ @ @ ",
61 " @@@@@ @ @@@@@@ @@@@@ @@@@@@ @@@@@@@@@@@@@@ @@@@@ ",
62 "@ @ @ @ @ @@ @@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@ @@@@ ",
102 " @ @ @ @ @ @ @ @ @ @ @ @@@@ ",
103 " @ @ @ @ @ @ @ @@ @@ @@ @ @ @",
104 " @@@@@@ @ @ @@@@ @ @ @@ @ @ @ @ @ @",
105 " @ @ @ @ @ @ @ @ @ @ @ @ @ @",
106 " @ @ @ @ @ @ @ @ @ @ @ @@ @ @",
107 " @ @ @ @@@@ @ @ @@@@@@ @ @ @ @ @@@@ ",
110 " @@@@@ @@@@ @@@@@ @@@@ @@@@@ @ @ @ @ @ @",
111 " @ @ @ @ @ @ @ @ @ @ @ @ @ @",
112 " @ @ @ @ @ @ @@@@ @ @ @ @ @ @ @",
113 " @@@@@ @ @ @ @@@@@ @ @ @ @ @ @ @ @@ @",
114 " @ @ @ @ @ @ @ @ @ @ @ @ @@ @@",
115 " @ @@@ @ @ @ @@@@ @ @@@@ @@ @ @",
117 " @@@ @ @@@ @@ @ @ @ @",
118 " @ @ @ @ @@@@@@ @ @ @ @ @ @ @ @ @ ",
119 " @ @ @ @ @ @ @ @ @@ @ @ @ @",
120 " @@ @ @ @@ @@ @ @ @ ",
121 " @@ @ @ @ @ @ @ @ @ @",
122 " @ @ @ @ @ @ @ @ @ @ ",
123 " @ @ @ @@@@@@ @@@ @ @@@ @ @ @ @"
130 int a
, b
, c
, len
, ind
;
133 for (argv
++; --argc
; argv
++) {
135 if (len
> 10) len
= 10;
136 for (a
= 0; a
< 7; a
++) {
137 for (b
= 0; b
< len
; b
++) {
138 if ((ind
= (*argv
)[b
] - ' ') < 0) ind
= 0;
139 for (c
= 0; c
< 7; c
++) {
140 line
[b
* 8 + c
] = glyphs
[(ind
/ 8 * 7) + a
][(ind
% 8 * 7) + c
] == '@' ? ind
+ ' ' : ' ';
142 line
[b
* 8 + 7] = ' ';
144 for (b
= len
* 8 - 1; b
>= 0; b
--) {
145 if (line
[b
] != ' ') break;
148 printf("%s\n", line
);