Re: [fpc-pascal] strlen and nil

2012-08-01 Thread michael . vancanneyt
On Wed, 1 Aug 2012, Mattias Gaertner wrote: On Wed, 1 Aug 2012 12:21:05 +0200 (CEST) mar...@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 doe

Re: [fpc-pascal] strlen and nil

2012-08-01 Thread Mattias Gaertner
On Wed, 1 Aug 2012 12:21:05 +0200 (CEST) mar...@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 n

Re: [fpc-pascal] strlen and nil

2012-08-01 Thread Marco van de Voort
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. _

[fpc-pascal] strlen and nil

2012-08-01 Thread Mattias Gaertner
Hi, 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. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.or