Category : Pascal Source Code
Archive   : PASTOOLS.ZIP
Filename : ATOI.INC
#log Ascii to integer conversion
(*
*
* converts ascii string to an integer value
*
*)
function atoi (asc: anystring): integer;
var
code: integer;
value: integer;
begin
while copy(asc,1,1) = ' ' do
delete(asc,1,1);
if asc = '' then
value := 0
else
begin
val(asc, value, code);
if code <> 0 then
if asc[code] <> ' ' then
value := 0;
end;
atoi := value;
end;
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/