[fpc-devel] copy for PChar

Marco van de Voort marcov at stack.nl
Sun Feb 19 18:26:11 CET 2012


In our previous episode, Mattias Gaertner said:
> > 
> > http://www.freepascal.org/docs-html/rtl/strings/strlcopy.html 
> 
> Thanks. But apparently I was not exact enough.
> 
> "Copy" has the nice feature, that the bounds are checked.
> For PChar it does that too, but it always runs through the whole PChar
> to #0.
> And I need an Ansistring as result.

http://www.freepascal.org/docs-html/rtl/system/setstring.html




More information about the fpc-devel mailing list