put back "obsolete cruft" -- it's used
[unix-history] / usr / src / usr.bin / tn3270 / tools / mkdstoas / mkdstoas.c
CommitLineData
8d73ea61
GM
1#include <stdio.h>
2#include <string.h>
3#include <ctype.h>
4#include "../ascii/ascebc.h"
5#include "../ctlr/ebc_disp.h"
6
7
8void
9main()
10{
11 int i;
12
13 /* For each display code, find the ascii code that matches */
14
15 printf("unsigned char disp_asc[%d] = {", sizeof disp_ebc);
16 for (i = 0; i < sizeof disp_ebc; i++) {
17 if ((i%8) == 0) {
18 printf("\n");
19 }
20 printf("\t");
21 printf("0x%2x,", ebcasc[0][disp_ebc[i]]);
22 }
23 printf("\n};\n");
24}