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