C <-> Erlang with IC

G'day,
I am trying to export some C functions to Erlang and at the same time getting
those C functions to invoke Erlang functions in the same program. Like that
of the calback functions. How can this be done in IC ?? if possible at all...
thanks,
mark