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



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

strmove

Move a null-terminated string to new location.

Declaration

Source position: syspchh.inc line 33

function strmove(

  dest: pchar;

  source: pchar;

  l: SizeInt

):pchar;

Description

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

Errors

None.

See also

StrLCopy

  

Copy a null-terminated string, limited in length.

StrCopy

  

Copy a null-terminated string

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);
  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