next up previous contents index
Next: StrPCopy Up: Functions and procedures. Previous: StrNew

StrPas

   

Declaration:

Function StrPas (P : PChar) : String;

Description:

Converts a null terminated string in P to a Pascal string, and returns this string. The string is truncated at 255 characters.

Errors:

None.

See also:

StrPCopy

Example
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.



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998