a45d42de48ec1ff1c2b846aa63b210c24f15db85
4 #include "pdp11_cr_dat.h"
6 static int colStart
= 1; /* starting column */
7 static int colEnd
= 80; /* ending column */
14 for (col
= colStart
; col
<= colEnd
; ) {
15 switch (c
= fgetc (stdin
)) {
19 while (col
<= colEnd
) {
20 fputc (o29_code
[' '] & 077, stdout
);
21 fputc ((o29_code
[' '] >> 6) & 077, stdout
);
27 fputc (o29_code
[' '] & 077, stdout
);
28 fputc ((o29_code
[' '] >> 6) & 077, stdout
);
30 } while (((col
& 07) != 1) && (col
<= colEnd
));
33 fputc (o29_code
[c
] & 077, stdout
);
34 fputc ((o29_code
[c
] >> 6) & 077, stdout
);
39 /* flush long lines, or flag over-length card */
40 if (c
!= '\n' && c
!= EOF
) {
41 printf ("overlength line\n");
43 while ((c
!= EOF
) && (c
!= '\n'));