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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to