[fpc-pascal] strlen and nil

Marco van de Voort marcov at stack.nl
Wed Aug 1 12:21:05 CEST 2012


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.



More information about the fpc-pascal mailing list