scrmem_attr_set_destructor()

Set the destructor to associate with the handle

Synopsis:

#include <scrmem/scrmem_create.h>
void scrmem_attr_set_destructor(struct scrmem_attr *attr, scrmem_destructor_t *fn, void *arg)

Arguments:

attr
An attribute structure.
fn
The destructor function; or NULL.
arg
The value to pass to the destructor.

Library:

libscrmem

Description:

The scrmem_attr_set_destructor() function sets the destructor to associate with the handle. The funciton is called with the specifed argument on scrmem_close().

Page updated: