At last night's meetup Niki told us about the glory and the horror of getting OCaml and C talking with each other. It's a little frustrating that OCaml exposes so much of its internal representation in the C API but if you want to write bindings for C libraries you have to know this stuff.
Other resources
- A more detailed tutorial
- The C interface section of "OCaml for Scientific Computation"
- The manual's chapter on Interfacing C wth OCaml