[fpc-pascal] Array initialization

Francisco Reyes lists at stringsutils.com
Wed Mar 18 13:18:33 CET 2009


Fantomas writes:

> As far as I know, global variables are initialised with zeros when an
> application starts.

Gives a warning when I don't initialize it. 
split.pas(31,55) Warning: Variable "Values" does not seem to be initialized


> FillChar(Values,SizeOf(Values),0)

That worked.
However, for an integer is fillword better?




More information about the fpc-pascal mailing list