Standardize C API calls, require caller to allocate CString