FLTK 1.3.2

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

ascii.h
1 /* $XFree86: xc/lib/X11/lcUniConv/ascii.h,v 1.3 2000/11/29 17:40:28 dawes Exp $ */
2
3 /*
4 * ASCII
5 */
6
7 static int
8 ascii_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, int n)
9 {
10 unsigned char c = *s;
11 if (c < 0x80) {
12 *pwc = (ucs4_t) c;
13 return 1;
14 }
15 return RET_ILSEQ;
16 }
17
18 static int
19 ascii_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n)
20 {
21 if (wc < 0x0080) {
22 *r = wc;
23 return 1;
24 }
25 return RET_ILSEQ;
26 }
- © 1998-2012 by Bill Spitzak and others.