Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function PCharToString(P:PChar):String; override;
- var
- PP: PChar := P;
- begin
- while not(PP^ = #0) do Inc(PP);
- SetLength(Result, PtrUInt(PP)-PtrUInt(P) + 1);
- MemMove(P^, Result[1], PtrUInt(PP)-PtrUInt(P));
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement