C extension library