fltk 1.3.0rc3
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Release candidate.
  SfR Fresh Dox: fltk-1.3.0rc3-source.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation)  

iso8859_1.h

Go to the documentation of this file.
00001 /* $XFree86: xc/lib/X11/lcUniConv/iso8859_1.h,v 1.3 2000/11/29 17:40:30 dawes Exp $ */
00002 
00003 /*
00004  * ISO-8859-1
00005  */
00006 
00007 static int
00008 iso8859_1_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, int n)
00009 {
00010   unsigned char c = *s;
00011   *pwc = (ucs4_t) c;
00012   return 1;
00013 }
00014 
00015 static int
00016 iso8859_1_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n)
00017 {
00018   if (wc < 0x0100) {
00019     *r = wc;
00020     return 1;
00021   }
00022   return RET_ILSEQ;
00023 }