Strings.h (sigh) and a small bug.
[unix-history] / usr / src / usr.bin / tn3270 / tools / mkdstoas / mkdstoas.c
#include <stdio.h>
#include <strings.h>
#include <ctype.h>
#include "../ascii/ascebc.h"
#include "../ctlr/ebc_disp.h"
void
main()
{
int i;
/* For each display code, find the ascii code that matches */
printf("unsigned char disp_asc[256] = {");
for (i = 0; i < sizeof disp_ebc; i++) {
if ((i%8) == 0) {
printf("\n");
}
printf("\t0x%2x,", ebcasc[0][disp_ebc[i]]);
}
for (i = sizeof disp_ebc; i < 256; i++) {
if ((i%8) == 0) {
printf("\n");
}
printf("\t0x%2x,", ' ');
}
printf("\n};\n");
}