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



[Overview][Procedures and functions] Reference for unit 'strings' (#rtl)

stralloc

Allocate memory for a new null-terminated string on the heap

Declaration

Source position: strings.pp line 86

function stralloc(

  L: SizeInt

):pchar;

Description

StrAlloc reserves memory on the heap for a string with length Len, terminating #0 included, and returns a pointer to it.

Errors

If there is not enough memory, a run-time error occurs.

See also

StrNew

  

Allocate room for new null-terminated string.

StrPCopy

  

Copy a pascal string to a null-terminated string

Notes

 No notes exist for this page yet. 





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