[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'System' (#rtl)

FillDWord

Fill memory region with 32-bit pattern

Declaration

Source position: systemh.inc line 787

procedure FillDWord(

  var x;

  count: SizeInt;

  value: DWord

);

Description

Fillword fills the memory starting at X with Count DWords with value equal to Value. A DWord is 4 bytes in size.

Errors

No checking on the size of X is done.

See also

FillByte

  

Fill memory region with 8-bit pattern

Fillchar

  

Fill memory region with certain character

Fillword

  

Fill memory region with 16-bit pattern

Move

  

Move data from one location in memory to another

Example

Program Example104;

{ Program to demonstrate the FillDWord function. }

Const
  ArraySize = 1000;

Var
  S : Array [1..ArraySize] of DWord;
  I : longint;

begin
  FillDWord(S,ArraySize,0);
  For I:=1 to ArraySize do
    If S[i]<>0 then
      Writeln('Position ',i,' not zeroed out');
end.

Documentation generated on: May 14 2021