Advertisement
WarPie90

Untitled

Oct 23rd, 2014
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.22 KB | None | 0 0
  1. function PCharToString(P:PChar):String; override;
  2. var
  3.   PP: PChar := P;
  4. begin
  5.   while not(PP^ = #0) do Inc(PP);
  6.  
  7.   SetLength(Result, PtrUInt(PP)-PtrUInt(P) + 1);
  8.   MemMove(P^, Result[1], PtrUInt(PP)-PtrUInt(P));
  9. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement