help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Procedures and functions] Reference for unit 'strings' (#rtl)

strcat

Concatenate 2 null-terminated strings.

Declaration

Source position: strings.pp line 41

function strcat(

  dest: pchar;

  source: pchar

):pchar;

Description

Attaches Source to Dest and returns Dest.

Errors

No length checking is performed.

See also

StrLCat

  

Concatenate 2 null-terminated strings, with length boundary.

Example

Program Example11;

Uses strings;

{ Program to demonstrate the StrCat function. }

Const P1 : PChar = 'This is a PChar String.';

Var P2 : PChar;

begin
  P2:=StrAlloc (StrLen(P1)*2+1);
  StrMove (P2,P1,StrLen(P1)+1); { P2=P1 }
  StrCat (P2,P1);               { Append P2 once more }
  Writeln ('P2 : ',P2);
  StrDispose(P2);
end.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505