Page of 234

HP 9000 User Manual Page 200

Computers.
Hide thumbs

Advertisement

Displaying Character Sets on Your Terminal
You can display a table of one-byte characters supported on a particular device
by directing the output of this program to that device.
#include <stdio.h>
main 0
{
}
int c1,c2,pchar;
printf("
\\
0 1
2 3 4
5 6
7 8
9 10 11 12 13 14 15\n");
for (c1=0; c1<16; c1++){
}
printf("%3d
",c1);
for (c2=0; c2<16; c2++){
pchar=«(c2*16+c1)tOx7f"31)?(c2*16+c1):' ';
printf("%c
",pchar);
}
printf("\n");
Languages and Codesets E-5
E

Advertisement

   Related Manuals for HP 9000

Comments to this Manuals

Symbols: 0
Latest comments: