Sign in Join
FPDoc Onlineexperiment

DisposeStr procedure

In unit sysutils

Dispose an ansistring from the heap.

Declaration

pascal
procedure DisposeStr(S: PString); overload

Description

DisposeStr removes the dynamically allocated string S from the heap, and releases the occupied memory.

This function is provided for Delphi compatibility only. AnsiStrings are managed on the heap and should be preferred to the mechanism of dynamically allocated strings.

For an example, see DisposeStr.

Errors

None.

See also

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