summaryrefslogtreecommitdiff
path: root/utf8.h
blob: 49e0750fc8f923444a54d666dfaec6d33602da50 (plain)
1
2
3
4
5
6
7
8
9
typedef unsigned long unicode;
/* must be big enough to store codes up to UMAX */

#define UMAX 0x10ffff /* last unicode value */
#define BMPMAX 0xffff

#include <stdio.h>
unicode fromUTF8(FILE *);
void outUTF8(unicode, FILE *);