[fpc-devel] ExtractFileName function has a bug

Peter Vreman peter at freepascal.org
Fri Dec 23 11:04:29 CET 2005

> Hi,
> Below in a program showing the problem with the ExtractFileName
> function.  It work different compared to Delphi (Test 3 fails). The FPC
> version only extracts the first 255 chars from the filename.  By
> difinition, the function should extract the complete filename part.
> Whether the filename ends up being invalid for the current OS is not its
> purpose!


More information about the fpc-devel mailing list