Jambi implementation in C