Sign in Join
FPDoc Onlineexperiment

FillWord procedure

In unit System

Fill memory region with 16-bit pattern.

Declaration

pascal
procedure FillWord(var x; count: SizeInt; Value: Word)

Description

Fillword fills the memory starting at X with Count words with value equal to Value. A word is 2 bytes in size.

Errors

No checking on the size of X is done.

See also

Example: ex76

pascal
Program Example76;

{ Program to demonstrate the FillWord function. }

Var W : Array[1..100] of Word;

begin
  { Quick initialization of array W }
  FillWord(W,100,0);
end.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.