]> mj.ucw.cz Git - libucw.git/blobdiff - charset/utf8.c
Renamed unisplit to gen-basic.
[libucw.git] / charset / utf8.c
index 1258f73615dddb3d24e33a9ae17d4989d16bf952..09f924ae355b5a343adea18a56bd6702c8aea64a 100644 (file)
@@ -1,9 +1,13 @@
 /*
  *     The UniCode Library -- UTF-8 Functions
  *
- *     (c) 1997 Martin Mares, <mj@atrey.karlin.mff.cuni.cz>
+ *     (c) 1997 Martin Mares <mj@ucw.cz>
+ *
+ *     This software may be freely distributed and used according to the terms
+ *     of the GNU Lesser General Public License.
  */
 
+#include "lib/lib.h"
 #include "charset/unicode.h"
 
 uns
@@ -37,5 +41,5 @@ utf8_to_ucs2(word *d, byte *s)
     else
       *d++ = *s++;
   *d = 0;
-  return d0 - d;
+  return d - d0;
 }