Albrecht Schlosser wrote:
> matthiasm wrote:
>>>> // Assume pairs of bytes: <char> <nul> <char> <nul> .. <nul> <nul>
>>>> void multibyte_convert(const char *in, char *out)
>>>> {
>>>>    for ( ; *in; out++, in+=2 )
>>>>        { *out = *in; }
>>>> }
>>> to Greg: wouldn't the above code miss the trailing zero byte?

        Ya, I think you're right.

        While I was 'prettying' up the code, I think I lost the
        logic that included copying the trailing nul.

        Fortunately the article is editable ;)
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to