help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

StrDispose

Dispose of a null-terminated string on the heap.

Declaration

Source position: syspchh.inc line 49

procedure StrDispose(

  Str: PChar

);

Description

StrDispose frees any memory allocated for Str. This function will only function correctly if Str has been allocated using StrAlloc from the SysUtils unit.

For an example, see StrBufSize.

Errors

If an invalid pointer is passed, or a pointer not allocated with StrAlloc, an error may occur.

See also

StrBufSize

  

Return the size of a null-terminated string allocated on the heap.

StrAlloc

  

Allocate a null-terminated string on the heap.

StrDispose

  

Dispose of a null-terminated string on the heap.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505