ndd_is_empty


[ Synopsis | Description | Return values | Diagnostics | See also | Back to the NDD package documentation ]

Synopsis

#include "lash-ndd.h"

int ndd_is_empty(ndd *nd);

Description

This function tests whether the NDD *nd represents the empty set. The NDD *nd is not modified.

Return values

In the case of success, this function returns a Boolean value (1 if the set is empty, 0 if the set is not empty). In the case of an error, it returns -1 and sets lash_errno.

Diagnostics

LASH_ERR_NOT_INIT
The package has not been initialized.
LASH_ERR_NO_MEM
Insufficient memory.
LASH_ERR_CORRUPT
Corrupt NDD.

See also

ndd_inclusion, ndd_equality.

[ Synopsis | Description | Return values | Diagnostics | See also | Back to the NDD package documentation ]