strm_string_destroy()

Updated: April 19, 2023

Destroy a shareable string handle

Synopsis:

#include <sys/strm.h>
int strm_string_destroy(strm_string_t *sstr)

Arguments:

sstr
A handle to a shareable string.

Library:

libstrm

Description:

This function destroys the shareable string handle referenced by sstr. If this is the last handle referencing the shareable string, the function frees the object's memory.

Returns:

Zero on success, -1 on failure (check errno).