FillChar
Fill memory region with certain character
Declaration
Source position: systemh.inc line 868
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
Name | Description |
---|---|
FillByte | Fill memory region with 8-bit pattern |
FillDWord | Fill memory region with 32-bit pattern |
Fillword | Fill memory region with 16-bit pattern |
Move | Move data from one location in memory to another |
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.