slow5curl

s5curl_global_init

NAME

s5curl_global_cleanup - releases resources acquired by s5curl_global_init

SYNOPSYS

void s5curl_global_cleanup()

DESCRIPTION

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.

RETURN VALUE

No return value.

EXAMPLES

#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();
}

SEE ALSO

s5curl_global_init()