[Overview][Procedures and functions][Index] |
disposes of a null-terminated string on the heap
Source position: strings.pp line 100
procedure strdispose( |
p: pchar |
); |
Removes the string in P from the heap and releases the memory.
None.
|
Allocate room for new null-terminated string. |
Program Example17; Uses strings; { Program to demonstrate the StrDispose function. } Const P1 : PChar = 'This is a PChar string'; var P2 : PChar; begin P2:=StrNew (P1); Writeln ('P2 : ',P2); StrDispose(P2); end.
lazarus-ccr.sourceforge.net |