summaryrefslogtreecommitdiff
path: root/tests/webtbs/tw38259.pp
blob: 4f159954678e809afcdb420453d8096d1f0f0751 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{$mode objfpc}
{$inline on}

procedure mymove(var src,dst; len: ptrint); inline;
  begin
    if len<=0 then
      exit;
  end;


function concatansistrings(p1,p2 : pchar;length1,length2 : longint) : pchar;
var
  p : pchar;
begin
  getmem(p,length1+length2+1);
  mymove(p1[0],p[0],length1);
  mymove(p2[0],p[length1],length2+1);
  concatansistrings:=p;
end;

begin
end.