FLTK 1.3.4
iso8859_1.h
1 /* $XFree86: xc/lib/X11/lcUniConv/iso8859_1.h,v 1.3 2000/11/29 17:40:30 dawes Exp $ */
2 
3 /*
4  * ISO-8859-1
5  */
6 
7 static int
8 iso8859_1_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, int n)
9 {
10  unsigned char c = *s;
11  *pwc = (ucs4_t) c;
12  return 1;
13 }
14 
15 static int
16 iso8859_1_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n)
17 {
18  if (wc < 0x0100) {
19  *r = wc;
20  return 1;
21  }
22  return RET_ILSEQ;
23 }