Category : Miscellaneous Language Source Code
Archive   : ADAMENU2.ZIP
Filename : STRINGS.SPC

 
Output of file : STRINGS.SPC contained in archive : ADAMENU2.ZIP
-- .asis
package Strings is

DEFAULT_LSTRING_LEN : constant INTEGER := 128;

type Lstring (Length : INTEGER := DEFAULT_LSTRING_LEN) is
record
Data : STRING (1..Length);
Len : INTEGER := 0;
end record;

function Length (S : in Lstring) return INTEGER;
-- Return the current length of S

procedure ReadString (Lstr : out Lstring);

procedure WriteString (Lstr : in Lstring);

procedure Delete (St : in out Lstring;
Pos, Cnt : in INTEGER);
-- Delete Cnt characters from St starting at Pos

function Concat (Str : in Lstring;
Ch : in CHARACTER) return Lstring;
-- Concatenate Ch to the end of Str

function Concat (Str1, Str2 : in Lstring ) return Lstring;
-- Concatenate Str2 to the end of Str1

function Str (Num : in INTEGER;
Len : in INTEGER := 32) return Lstring;
-- Convert Num to an Lstring.

function Lstr (Str : in STRING;
Length : in INTEGER) return LSTRING;

function "+" (Lstr : in Lstring;
Str : in STRING) return Lstring;
-- append Str to the end of Lstr

function "+" (Str : in STRING;
Lstr : in Lstring) return Lstring;
-- append Lstr to the end of Str

function "+" (Lstr1, Lstr2 : in Lstring) return Lstring;
-- append Lstr2 to the end of Lstr1

end strings;


  3 Responses to “Category : Miscellaneous Language Source Code
Archive   : ADAMENU2.ZIP
Filename : STRINGS.SPC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. 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/