s5curl_global_cleanup - releases resources acquired by s5curl_global_init
void s5curl_global_cleanup()
The s5curl_global_cleanup()
releases resources acquired by s5curl_global_init
. This must be called once after all s5curl orperations are peformed.
Every s5curl_global_init()
should be followed by a corresponding s5curl_global_cleanup()
function when all s5curl operations are completed.
No return value.
#include <slow5curl/s5curl.h>
int main () {
int ret = s5curl_global_init();
if (ret < 0) {
fprintf(stderr, "Error initialising global resources\n");
exit(EXIT_FAILURE);
}
// s5curl operations
s5curl_global_cleanup();
}