src/libs/elektra/keyset.c
/**
 * A destructor for KeySet objects.
 *
 * Cleans all internal dynamic attributes, decrement all reference pointers
 * to all keys and then keyDel() all contained Keys,
 * and elektraFree ()s the release the KeySet object memory (that was previously
 * allocated by ksNew()).
 *
 * @param ks the keyset object to work with
 * @retval 0 when the keyset was freed
 * @retval -1 on null pointer
 * @see ksNew()
 */
A destructor for KeySet objects.
Cleans all internal dynamic attributes, decrement all reference pointers
to all keys and then keyDel() all contained Keys,
and elektraFree ()s the release the KeySet object memory (that was previously
allocated by ksNew()).

@param ks the keyset object to work with
@retval 0 when the keyset was freed
@retval -1 on null pointer
@see ksNew()
A destructor for KeySet objects . Cleans all internal dynamic attributes decrement all reference pointers to all keys and then keyDel () all contained Keys and elektraFree () s the release the KeySet object memory ( that was previously allocated by ksNew () ) . @param ks the keyset object to work with @retval 0 when the keyset was freed @retval - 1 on null pointer @see ksNew ()
int ksDel (KeySet * ks)
{
	int rc;
	if (!ks) return -1;
	rc = ksClose (ks);
	elektraFree (ks);
	return rc;
}
int ksDel ( KeySet * ks ) { int rc ; if ( ! ks ) return -1 ; rc = ksClose ( ks ) ; elektraFree ( ks ) ; return rc ; }
A destructor for KeySet objects.
A destructor for KeySet objects .