C programming connect to 'test' through C API