wrapper for c function with header