[fpc-devel] StrPos giving a access violation

Micha Nelissen micha at neli.hopto.org
Mon Dec 12 12:17:59 CET 2005


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 ?

Micha




More information about the fpc-devel mailing list