Convert a null-terminated string to a shortstring.
Source position: strings.pp line 23
function strpas( |
p: PAnsiChar |
):shortstring; |
Converts a null terminated string in P to a Pascal string, and returns this string. The string is truncated at 255 characters.
None.
|
Copy a pascal string to a null-terminated string. |
Program Example3; Uses strings; { Program to demonstrate the StrPas function. } Const P : PChar = 'This is a PCHAR string'; var S : string; begin S:=StrPas (P); Writeln ('S : ',S); end.