[fpc-pascal] strlen and nil

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Aug 1 12:32:11 CEST 2012


On Wed, 1 Aug 2012 12:21:05 +0200 (CEST)
marcov at stack.nl (Marco van de Voort) wrote:

> In our previous episode, Mattias Gaertner said:
> > What does strlen return on nil?
> > The FPC function strlen is implemented via FPC_PCHAR_LENGTH.
> > The documentation does not say what happens when passing nil.
> 
> Both the generic and assembler implementation return 0.

Thanks.
Can this be added to the docs?

Mattias



More information about the fpc-pascal mailing list