George Shapovalov wrote:
In Borland Pascal you would use
fillchar(var x;value:word [size:word]);
so the invoking would look exactly like your example:
fillchar(x,0,sizeOf(x));
However with BP you can do it to the <64K in size variables (as this is a maximal size for "regular" variable in BP). Does this work for gpc as well?
Yes (without the 64KB limit, of course).
However, the order of parameters is different (in BP and GPC):
procedure FillChar (var Dest; Count: Integer; Val: Char); or procedure FillChar (var Dest; Count: Integer; Val: Byte);
(At least that much is documented in the reference chapter in the manual, BTW.)
Frank