Arc Forumnew | comments | leaders | submitlogin
1 point by eds 6052 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 6051 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.

-----