s5curl_conn_cleanup - closes an existing connection handle
void s5curl_conn_cleanup(S5CURLCONN *conn)
The s5curl_conn_cleanup()
function closes an existing connection handle opened by s5curl_conn_init()
.
Every s5curl_conn_init()
should be followed by a corresponding s5curl_conn_cleanup()
function.
No return value.
#include <slow5curl/s5curl.h>
#define READ_ID "0032812b-1ea5-46f1-a844-5bcc3bf3c21f"
int main () {
// setup
S5CURLCONN *curl = s5curl_conn_init();
slow5_rec_t *rec = NULL;
ret = s5curl_get(s5c, curl, READ_ID, &rec);
slow5_rec_free(rec);
s5curl_conn_cleanup(curl);
// cleanup
}