blob: df027fde70aca2571912df0ca18cb97c414c9073 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
Program Example16;
Uses strings;
{ Program to demonstrate the StrNew function. }
Const P1 : PChar = 'This is a PChar string';
var P2 : PChar;
begin
P2:=StrNew (P1);
If P1=P2 then
writeln ('This can''t be happening...')
else
writeln ('P2 : ',P2);
StrDispose(P2);
end.
|