| [Overview][Procedures and functions][Index] | 
Move a null-terminated string to new location.
Source position: strings.pp line 61
| function strmove( | 
| dest: PChar; | 
| source: PChar; | 
| l: SizeInt | 
| ):PChar; | 
Copies MaxLen characters from Source to Dest. No terminating null-character is copied. Returns Dest
None.
| 
 | Copy a null-terminated string, limited in length. | |
| 
 | Copy a null-terminated string | 
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); StrDispose(P2); end.