File: utf8.c

package info (click to toggle)
eo-spell 3.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 952 kB
  • sloc: lisp: 2,789; sh: 179; makefile: 142; sed: 73; perl: 25; ansic: 16
file content (17 lines) | stat: -rw-r--r-- 348 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
void main()
{
    unsigned cc;
    printf("Latin-1:\n");
    for(cc = 0xa0; cc <= 0xff; cc++){
	printf("%c = \\x%x\\x%x\n", cc,
	      0xc0 | cc >> 6,
	      0x80 | cc & 0x3f);
    }
    printf("European:\n");
    for(cc = 0x100; cc <= 0x17f; cc++){
	printf("\\x%x = \\x%x\\x%x\n", cc,
	      0xc0 | cc >> 6,
	      0x80 | cc & 0x3f);
    }
    
}