fpc/tests/bench/shootout/obsolete/strcat.pp
Vincent Snijders 7a643c0907 * moved obsolete shootout benchmark to obsolete directory
git-svn-id: trunk@4852 -
2006-10-10 19:50:26 +00:00

21 lines
350 B
ObjectPascal

{ String Concatenation }
program strcat;
uses SysUtils;
var
NUM, i : longint;
str : string;
begin
if ParamCount = 0 then NUM := 1
else NUM := StrToInt(ParamStr(1));
if NUM < 1 then NUM := 1;
str := '';
For i := 1 To NUM Do
str := str + 'hello'#13;
WriteLn( Longint(Length(str)) );
WriteLn( str );
end.