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

FillChar

Fill memory region with certain character

Declaration

Source position: systemh.inc line 782

procedure FillChar(

  var x;

  count: SizeInt;

  Value: Byte

);

procedure FillChar(

  var x;

  count: SizeInt;

  Value: Boolean

);

procedure FillChar(

  var x;

  count: SizeInt;

  Value: Char

);

Description

Fillchar fills the memory starting at X with Count bytes or characters with value equal to Value.

Errors

No checking on the size of X is done.

See also

Fillword

  

Fill memory region with 16-bit pattern

Move

  

Move data from one location in memory to another

FillByte

  

Fill memory region with 8-bit pattern

FillDWord

  

Fill memory region with 32-bit pattern

Example

Program Example25;

{ Program to demonstrate the FillChar function. }

Var S : String[10];
    I : Byte;
begin
  For i:=10 downto 0 do
    begin
    { Fill S with i spaces }
    FillChar (S,SizeOf(S),' ');
    { Set Length }
    SetLength(S,I);
    Writeln (s,'*');
    end;
end.

Documentation generated on: May 14 2021