[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

DisposeStr

Dispose an ansistring from the heap.

Declaration

Source position: sysstrh.inc line 63

procedure DisposeStr(

  S: PString

);

Description

DisposeStrremoves the dynamically allocated string Sfrom the heap, and releases the occupied memory.

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

For an example, see DisposeStr.

Errors

None.

See also

NewStr

  

Allocate a new ansistring on the heap.

AppendStr

  

Append one ansistring to another.

AssignStr

  

Assigns an ansistring to a null-terminated string.