Sign in Join
FPDoc Onlineexperiment

StrPas function

In unit System

Convert a null-terminated string to a shortstring.

Declaration

pascal
function StrPas(p: PAnsiChar): shortstring

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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.