[fpc-pascal] AnsiStrLComp AnsiStrLIComp
Mattias Gaertner
nc-gaertnma at netcologne.de
Mon Dec 8 13:48:09 CET 2014
On Mon, 8 Dec 2014 13:22:42 +0100
Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>
> On 04 Dec 2014, at 16:24, Mattias Gaertner wrote:
>
> > According to the docs AnsiStrLComp treats #0 as normal characters,
> > which sounds as if it does not stop at #0.
> > Does it stop at #0 or does it not?
> > http://www.freepascal.org/docs-html/rtl/sysutils/ansistrlcomp.html
> >
> > The doc of AnsiStrLIComp says "compares the first MaxLen characters",
> > which sounds as if it does not stop at #0.
> > OTOH the examples seems to stop at #0.
> > Does it stop at #0 or does it not?
> > http://www.freepascal.org/docs-html/rtl/sysutils/ansistrlicomp.html
>
> Neither of these routines stops at #0.
Thanks.
Michael, can you add a comment to this example, that runs beyond the
strings:
Testit('One string','One smaller string',255);
Mattias
More information about the fpc-pascal
mailing list