| [Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | 
Allocate a null-terminated string on the heap.
Source position: syspchh.inc line 41
| function StrAlloc( | 
| Size: Cardinal | 
| ):PChar; | 
StrAlloc reserves memory on the heap for a string with length Len, terminating #0 included, and returns a pointer to it.
Additionally, StrAlloc allocates 4 extra bytes to store the size of the allocated memory. Therefore this function is NOT compatible with the StrAlloc function of the Strings unit.
For an example, see StrBufSize.
None.
| 
 | Return the size of a null-terminated string allocated on the heap. | |
| 
 | Dispose of a null-terminated string on the heap. | |
| 
 | Allocate memory for a new null-terminated string on the heap |