Go to main content

man pages section 3: Extended Library Functions, Volume 4

Exit Print View

Updated: Thursday, June 13, 2019
 
 

sstore_free (3SSTORE)

Name

sstore_alloc, sstore_free - allocates and frees a handle to libsstore

Synopsis

cc [ flag... ] file... -lsstore [ library... ]
#include <libsstore.h>

sstore_handle_t sstore_alloc(void);

void sstore_free(sstore_handle_t hdl);

Parameters

hdl

Handle to libsstore

Description

sstore_alloc()

allocates a handle to the libsstore.

sstore_free()

frees the handle to the libsstore.

Return Values

Upon successful completion, sstore_alloc() returns sstore_handle_t. Otherwise, it returns NULL.

Errors

The sstore_alloc() function fails if:

ENOMEM

There is insufficient memory.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
Safe

See Also

perror(3C), libsstore(3LIB), sstore_err_action(3SSTORE), attributes(7)