home *** CD-ROM | disk | FTP | other *** search
- {TUG PDS CERT 1.01 (Pascal)
-
- ==========================================================================
-
- TUG PUBLIC DOMAIN SOFTWARE CERTIFICATION
-
- The Turbo User Group (TUG) is recognized by Borland International as the
- official support organization for Turbo languages. This file has been
- compiled and verified by the TUG library staff. We are reasonably certain
- that the information contained in this file is public domain material, but
- it is also subject to any restrictions applied by its author.
-
- This diskette contains PROGRAMS and/or DATA determined to be in the PUBLIC
- DOMAIN, provided as a service of TUG for the use of its members. The
- Turbo User Group will not be liable for any damages, including any lost
- profits, lost savings or other incidental or consequential damages arising
- out of the use of or inability to use the contents, even if TUG has been
- advised of the possibility of such damages, or for any claim by any
- other party.
-
- To the best of our knowledge, the routines in this file compile and function
- properly in accordance with the information described below.
-
- If you discover an error in this file, we would appreciate it if you would
- report it to us. To report bugs, or to request information on membership
- in TUG, please contact us at:
-
- Turbo User Group
- PO Box 1510
- Poulsbo, Washington USA 98370
-
- --------------------------------------------------------------------------
- F i l e I n f o r m a t i o n
-
- * DESCRIPTION
- A simple program to test StackUse. Uses a few string because strings are
- rather hard on the stack.
-
- * ASSOCIATED FILES
- STACKUSE.PAS
- TESTSTAC.PAS
-
- * CHECKED BY
- DRM 08/08/88
-
- * KEYWORDS
- TURBO PASCAL V4.0
-
- ==========================================================================
- }
-
- {**********************************************************
-
- A simple program to test the public domain unit
- StackUse. Uses a few strings because strings are
- rather hard on the stack.
-
- version 1.0
- 7/17/88
- by Richard S. Sadowsky
- released to the public domain
-
- **********************************************************}
-
- {$M 4096,0,0} { allocate a 4k stack. This is 1/4 the default stack }
- { size. NOTE: this program uses over half of the 4K }
- { stack we give it! }
-
- program TestStackUsage;
-
- uses StackUse;
- { NOTE: all we do is Use StackUse, and it takes care of everything! }
-
-
- function UseStrings(S1,S2,S3,S4,S5,S6 : String) : String;
-
- { this function is designed to use some stack }
-
- begin
- UseStrings := S1 + S2 + S3 + S4 + S5 + S6;
- end;
-
- begin
-
- WriteLn('UseStrings = ',UseStrings('string #1 ',
- 'string #2 ',
- 'string #3 ',
- 'string #4 ',
- 'string #5 ',
- 'string #6'));
- WriteLn
- end.