| #include "pdp11_cr_dat.h"
|
| static int colStart = 1; /* starting column */
|
| static int colEnd = 80; /* ending column */
|
| for (col = colStart; col <= colEnd; ) {
|
| switch (c = fgetc (stdin)) {
|
| fputc (o29_code[' '] & 077, stdout);
|
| fputc ((o29_code[' '] >> 6) & 077, stdout);
|
| fputc (o29_code[' '] & 077, stdout);
|
| fputc ((o29_code[' '] >> 6) & 077, stdout);
|
| } while (((col & 07) != 1) && (col <= colEnd));
|
| fputc (o29_code[c] & 077, stdout);
|
| fputc ((o29_code[c] >> 6) & 077, stdout);
|
| /* flush long lines, or flag over-length card */
|
| if (c != '\n' && c != EOF) {
|
| printf ("overlength line\n");
|
| while ((c != EOF) && (c != '\n'));
|