[fpc-devel] StrPos giving a access violation

peter green plugwash at P10Link.net
Mon Dec 12 13:01:39 CET 2005



> -----Original Message-----
> From: fpc-devel-bounces at lists.freepascal.org
> [mailto:fpc-devel-bounces at lists.freepascal.org]On Behalf Of Micha
> Nelissen
> Sent: 12 December 2005 11:18
> To: FPC developers' list
> Subject: Re: [fpc-devel] StrPos giving a access violation
>
>
> Jonas Maebe wrote:
> > strpos, I don't know about Delphi. If you typecast an  ansistring to a
> > pchar, then the compiler makes sure that if the  ansistring is empty
> > (and thus a null pointer), a valid pointer to an  empty null-terminated
> > string is returned.
>
> Is that not also undocumented behaviour ?
its documented somewhere in the delphi help iirc




More information about the fpc-devel mailing list