RULEXDB_REMOVE_ITEM(3)
π RULEXDB_REMOVE_ITEM(3) π
okay bestie, we're in the Library Functions Manual and this one's a lil delete-button moment, so let's get into it π
β¨ NAME β¨
rulexdb_remove_item β remove specified item from the rulex dictionary
πΈ SYNOPSIS πΈ
#include <rulexdb.h>
int rulexdb_remove_item(RULEXDB *rulexdb, const char *key, int item_type);
π DESCRIPTION π
so the rulexdb_remove_item() function does exactly what it says on the tin β it removes a lexical item for the specified key from the dictionary dataset defined by the item_type argument. and item_type can be one of these two icons π
RULEXDB_LEXBASEβ remove the item from the Implicit dictionary. π«ΆRULEXDB_EXCEPTIONβ remove the item from the Explicit dictionary. β¨
lowkey important: the data type has to be specified explicitly. the value RULEXDB_DEFAULT is not allowed here, no exceptions, periodt π
and the rulexdb argument references the database we're dealing with, obviously π¦
π RETURN VALUE π
so rulexdb_remove_item() returns:
RULEXDB_SUCCESSβ which is zero β when the specified item was successfully removed π slay- a positive value,
RULEXDB_SPECIALβ when no record exists for the specified key (it's giving "girl there's nothing here") π - a negative error code β when it's any other kind of failure π
π ERRORS π
RULEXDB_FAILUREβ the referenced database has not been opened, internal data structures are corrupted, or some other general failure has occurred. bestie, this is the vague "something's wrong" of error codes π«RULEXDB_EINVKEYβ invalid key specified. nope, not that one πRULEXDB_EPARMβ the argumentrulexdboritem_typehas an invalid value. check your inputs bestie πRULEXDB_EACCESSβ the database is not opened for updating. so you literally cannot delete anything from it rn π₯
π¦ SEE ALSO π¦
rulexdb_classify(3)rulexdb_close(3)rulexdb_dataset_name(3)rulexdb_discard_dictionary(3)rulexdb_discard_ruleset(3)rulexdb_fetch_rule(3)rulexdb_lexbase(3)rulexdb_load_ruleset(3)rulexdb_open(3)rulexdb_remove_rule(3)rulexdb_remove_this_item(3)rulexdb_retrieve_item(3)rulexdb_search(3)rulexdb_seq(3)rulexdb_subscribe_item(3)rulexdb_subscribe_rule(3)
π AUTHOR π
Igor B. Poretsky <poretsky@mlbox.ru>. king behavior, no cap π«Ά
and that's the whole page bestie π this lil masterpiece dropped on February 20, 2012, and it's filed under RULEXDB_REMOVE_ITEM(3) in the Library Functions Manual β iconic, historic, and fr fr useful. mwah πβ¨
π¦ where this page comes from
- debian trixie: librulexdb-dev 3.8.6-1 Β· LGPL-2.1-or-later
- ubuntu questing: librulexdb-dev 3.8.6-1
- ubuntu resolute: librulexdb-dev 3.8.6-1build1 Β· LGPL-2.1-or-later
- ubuntu stonking: librulexdb-dev 3.8.6-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms