summaryrefslogtreecommitdiff
path: root/fpcdocs/refex/ex28.pp
blob: 1de1fee997a2f128a2af782977fcb7ad1840d538 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Program Example28;

{ Program to demonstrate the FreeMem and GetMem functions. }

Var P : Pointer;
    MM : Longint;

begin
  { Get memory for P }
  GetMem (P,80);
  FillChar (P^,80,' ');
  FreeMem (P,80);
end.