utf8.c
changeset 48 b94d657a9acb
parent 9 c3fecc82ade6
child 77 49e0babccb23
--- a/utf8.c
+++ b/utf8.c
@@ -31,7 +31,7 @@
         dest[2] = 0;
         dest[3] = 0;
         if (wctomb (dest, (*str)) == -1)
-            return -1;
+            return EXIT_FAILURE;
 
         printf ("%lc -> [%4X] (%2X:%2X:%2X:%2X)\n",
                 *str, *str, (u_char) dest[0], (u_char) dest[1], (u_char) dest[2], (u_char) dest[3]);