Category : Pascal Source Code
Archive   : PIBMENUS.ZIP
Filename : MINMAX.PAS
(* Min --- Find minimum of two integers *)
(*----------------------------------------------------------------------*)
Function Min( A, B: Integer ) : Integer;
(*----------------------------------------------------------------------*)
(* *)
(* Function: Min *)
(* *)
(* Purpose: Returns smaller of two numbers *)
(* *)
(* Calling sequence: *)
(* *)
(* Smaller := MIN( A , B ) : Integer; *)
(* *)
(* A --- 1st input integer number *)
(* B --- 2nd input integer number *)
(* Smaller --- smaller of A, B returned *)
(* *)
(* *)
(* Calls: None *)
(* *)
(* *)
(*----------------------------------------------------------------------*)
Begin (* Min *)
IF A < B Then
Min := A
Else
Min := B;
End (* Min *);
(*----------------------------------------------------------------------*)
(* Max --- Find maximum of two integers *)
(*----------------------------------------------------------------------*)
Function Max( A, B: Integer ) : Integer;
(*----------------------------------------------------------------------*)
(* *)
(* Function: Max *)
(* *)
(* Purpose: Returns larger of two numbers *)
(* *)
(* Calling sequence: *)
(* *)
(* Larger := MAX( A , B ) : Integer; *)
(* *)
(* A --- 1st input integer number *)
(* B --- 2nd input integer number *)
(* Larger --- Larger of A, B returned *)
(* *)
(* *)
(* Calls: None *)
(* *)
(*----------------------------------------------------------------------*)
Begin (* Max *)
IF A > B Then
Max := A
Else
Max := B;
End (* Max *);
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/