Category : Files from Magazines
Archive   : PTV1N4.ZIP
Filename : GET.PAS

 
Output of file : GET.PAS contained in archive : PTV1N4.ZIP
{ get.pas -- Retrieve a string from the passive TSR's buffer }
program get;
uses crt, utransfer;
var
s : string; { String to receive transfer }
n : word; { Number of bytes transferred }
bufSize : word; { Returned by Status }
typeCode : byte; { Returned by Status }
errorCode : byte; { Returned by Status }
begin
Status( bufSize, typeCode, errorCode );
if typeCode <> 1 then
begin
writeln( 'Data is not a string' );
halt( 1 )
end; { if }
fillchar( s, sizeof(s), 0 ); { Erase any leftovers in s }
n := GetBlock( @s, sizeof(s) ); { Get data from TSR }
if transferError <> 0 then
begin
writeln( 'ERROR: Code #', transferError );
halt( transferError )
end; { if }
writeln( 'string = ', s ) { Display results }
end.



  3 Responses to “Category : Files from Magazines
Archive   : PTV1N4.ZIP
Filename : GET.PAS

  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/