procedure TForm1.Button2Click(Sender: TObject);
var str:string;
buf:array[0..100] of char;
begin
str:='test1234567890!';
move(str[1],buf,length(str));
end;
procedure TForm1.Button2Click(Sender: TObject);
var str:string;
buf:array[0..100] of char;
begin
str:='test1234567890!';
strlcopy(@buf,Pchar(str),101);
end;