X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=charset%2Futf8.c;h=09f924ae355b5a343adea18a56bd6702c8aea64a;hb=d9820b2d7d4b908bb9da441f5a35a7999d701e60;hp=915addeeac88fc18d73938d2bea52fce8695eb58;hpb=ac9212c1d03bd23f6322bef39a4a0384b5afcc5d;p=libucw.git diff --git a/charset/utf8.c b/charset/utf8.c index 915addee..09f924ae 100644 --- a/charset/utf8.c +++ b/charset/utf8.c @@ -1,10 +1,14 @@ /* * The UniCode Library -- UTF-8 Functions * - * (c) 1997 Martin Mares, + * (c) 1997 Martin Mares + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ -#include "unicode.h" +#include "lib/lib.h" +#include "charset/unicode.h" uns ucs2_to_utf8(byte *d, word *s) @@ -37,5 +41,5 @@ utf8_to_ucs2(word *d, byte *s) else *d++ = *s++; *d = 0; - return d0 - d; + return d - d0; }