mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
12 lines
151 B
Python
12 lines
151 B
Python
from c import *
|
|
|
|
p = malloc(10 * sizeof(int32))
|
|
p = cast(p, int32)
|
|
|
|
for i in range(10):
|
|
p[i] = i
|
|
|
|
for i in range(10):
|
|
assert p[i] == i
|
|
|
|
free(p) |