Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
5
Task/Memory-allocation/Phix/memory-allocation.phix
Normal file
5
Task/Memory-allocation/Phix/memory-allocation.phix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
atom addr = allocate(512) -- limit is 1,610,612,728 bytes on 32-bit systems
|
||||
...
|
||||
free(addr)
|
||||
atom addr2 = allocate(512,1) -- automatically freed when addr2 drops out of scope or re-assigned
|
||||
atom addr3 = allocate_string("a string",1) -- automatically freed when addr3 drops out of scope or re-assigned
|
||||
Loading…
Add table
Add a link
Reference in a new issue