next up previous contents index
Next: StrNew Up: Functions and procedures. Previous: StrLower

StrMove

   

Declaration:

Function StrMove (Dest,Source : PChar; MaxLen : Longint) : PChar;

Description:

Copies MaxLen characters from Source to Dest. No terminating null-character is copied. Returns Dest.

Errors:

None.

See also:

StrLCopy, StrCopy

Example
Program Example10;

Uses strings;

{ Program to demonstrate the StrMove function. }

Const P1 : PCHAR = 'This is a pchar string.';


Var P2 : Pchar;
       
begin
  P2:=StrAlloc(StrLen(P1)+1);
  StrMove (P2,P1,StrLen(P1)+1); { P2:=P1 }
  Writeln ('P2 = ',P2);
end.



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998