home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
pascal
/
lzw4p12.zip
/
MEMORY.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-02-15
|
481b
|
26 lines
Unit Memory;
interface
function AllocMemory(Size : Word) : Pointer;
function FreeMemory(P : Pointer; Size : Word) : Integer;
implementation
function AllocMemory(Size : Word) : Pointer;
var
P : Pointer;
begin
GetMem(P, Size);
(*writeln('Allocating ',Size,' bytes');*)
AllocMemory := P;
end;
function FreeMemory(P : Pointer; Size : Word) : Integer;
begin
FreeMem(P, Size);
(*writeln('Freeing ',Size,' bytes');*)
FreeMemory := 0;
end;
end.