home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
files
/
bbs
/
pibterm
/
pibt3sp1
/
maxblock.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1985-08-11
|
2KB
|
36 lines
(*----------------------------------------------------------------------*)
(* MaxBlockAvail --- returns size in bytes of largest free heap block *)
(*----------------------------------------------------------------------*)
FUNCTION MaxBlockAvail : REAL;
(*----------------------------------------------------------------------*)
(* *)
(* Function: MaxBlockAvail *)
(* *)
(* Purpose: Returns size in bytes of largest free heap block *)
(* *)
(* Calling Sequence: *)
(* *)
(* Size := MaxBlockAvail : REAL; *)
(* *)
(* Size --- returned size in bytes of largest available *)
(* free block on heap. *)
(* *)
(* Calls: MaxAvail *)
(* *)
(*----------------------------------------------------------------------*)
VAR
NParagraphs : INTEGER;
BEGIN (* MaxBlockAvail *)
NParagraphs := MaxAvail;
IF Nparagraphs >= 0 THEN
MaxBlockAvail := 16.0 * Nparagraphs
ELSE
MaxBlockAvail := 16.0 * ( 65536.0 + NParagraphs );
END (* MaxBlockAvail *);ə