Arc Forum
new
|
comments
|
leaders
|
submit
login
1 point
by
eds
6061 days ago |
link
|
parent
Just wondering: is there a way to malloc(sizeof(int)) from inside Arc instead of hard coding the size of an int?
2 points
by
stefano
6060 days ago |
link
You can make a C function like this:
int size_of_int () { return sizeof(int); }
and import it. I've followed this route while writing gtk.arc, but probably there's a better way to do it.
-----