/*
* 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 "unicode.h"
+#include "lib/lib.h"
+#include "charset/unicode.h"
uns
ucs2_to_utf8(byte *d, word *s)
else
*d++ = *s++;
*d = 0;
- return d0 - d;
+ return d - d0;
}