add source for check wrapping C function