utf8.c
changeset 48 b94d657a9acb
parent 9 c3fecc82ade6
child 77 49e0babccb23
equal deleted inserted replaced
47:63adb261de90 48:b94d657a9acb
    29         dest[0] = 0;
    29         dest[0] = 0;
    30         dest[1] = 0;
    30         dest[1] = 0;
    31         dest[2] = 0;
    31         dest[2] = 0;
    32         dest[3] = 0;
    32         dest[3] = 0;
    33         if (wctomb (dest, (*str)) == -1)
    33         if (wctomb (dest, (*str)) == -1)
    34             return -1;
    34             return EXIT_FAILURE;
    35 
    35 
    36         printf ("%lc -> [%4X] (%2X:%2X:%2X:%2X)\n",
    36         printf ("%lc -> [%4X] (%2X:%2X:%2X:%2X)\n",
    37                 *str, *str, (u_char) dest[0], (u_char) dest[1], (u_char) dest[2], (u_char) dest[3]);
    37                 *str, *str, (u_char) dest[0], (u_char) dest[1], (u_char) dest[2], (u_char) dest[3]);
    38         str++;
    38         str++;
    39     }
    39     }