create c wrap for ruby program