FLTK 1.3.2

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

- File List
- File Members

ascii.h

    00001 /* $XFree86: xc/lib/X11/lcUniConv/ascii.h,v 1.3 2000/11/29 17:40:28 dawes Exp $ */
    00002
    00003 /*
    00004  * ASCII
    00005  */
    00006
    00007 static int
    00008 ascii_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, int n)
    00009 {
    00010   unsigned char c = *s;
    00011   if (c < 0x80) {
    00012     *pwc = (ucs4_t) c;
    00013     return 1;
    00014   }
    00015   return RET_ILSEQ;
    00016 }
    00017
    00018 static int
    00019 ascii_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n)
    00020 {
    00021   if (wc < 0x0080) {
    00022     *r = wc;
    00023     return 1;
    00024   }
    00025   return RET_ILSEQ;
    00026 }