[fpc-pascal] Re: pchar with more than 255 characters

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Nov 16 17:13:34 CET 2011


On 16 Nov 2011, at 17:06, Martin wrote:

> So why not use  pos(#0, foo_pchar) ?

That will convert foo_pchar to a string type (which one probably  
depends on the state of the {$h} switch) and then call pos() on it.  
Again: length(pchar) is perfectly correct and will be translated into  
strlen(pchar), just like in Delphi (and probably even like in TP).


Jonas



More information about the fpc-pascal mailing list