[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Highwire coding question



On Sun, 13 Sep 2009 17:19:00 , Gerhard_Stoll@b.maus.de (Gerhard Stoll) wrote:
>
> > Any suggestions ?
>
> The problem is that Highwire store the text as utf16 (see edit_char).
> > where strChunk is just the relevant portion of the 'input' string
>
> And how you do that?
>
> If it "strChunk = strncpy(input, start, end-start);" you copy not all
> character, because strncpy copy bytes and not word. So that ist also wrong
> "CHAR *   strChunk;", there must be "WCHAR".
>

ah, that's why it doesn't work.

So would it help to search the original string rather than try to copy
a piece of it ?

I just need to work out the relevant pointers which I have failed to
do so far.

Regards,

Peter