[fpc-pascal] Some RTL functions cry big tears when mixing Pchar and Ansistring/String
Marco van de Voort
marcov at stack.nl
Tue Jun 11 15:29:30 CEST 2013
In our previous episode, md at rpzdesign.com said:
> As for 2 examples:
>
> res := PosEx(mypchar,'NEEDLE',35) ;
>
> res := Copy (mypchar, 10,15) ;
These are not examples. These are snippets. Examples I can compile and
debug.
> What are the byte boundaries here?
> Zero Based from the pointer?
I think it will scan the pointer till a zero character, and then copy that
to an ansistring. Next pass the ansistring to posex.
More information about the fpc-pascal
mailing list