Hi, I have two questions about PChar.
Why Reallocmem function does not work with PChar?
How to increase the size of PChar without using Strings unit?
Thanks.
{$codepage utf8}
Var a:Pchar;
i:byte;
Begin
ReturnNilIfGrowHeapFails:=true;
a:='xxxxxxxxx';
for i:=0 to 9 do Writeln('[',i,']',a[i]);
Writeln('-------');
Reallocmem(a,20); //ko
End.