Previous | Contents | Index |
Remove an entry from a database.
status = PMDF_database_delete_entry
(database, entry)
Argument Data type Access Mechanism database signed longword read value entry descriptor read reference
status = PMDFdatabaseDeleteEntry
(database, entry, entry_len)
int PMDFdatabaseDeleteEntry(int database, char *entry, int entry_len)
database
Database to delete the entry from.entry
Entry to remove from the database (e.g., an alias). Length of this string should not exceedKEY_LENGTH
for a short database orLONG_KEY_LENGTH
for a long database.entry_len
Length in bytes of the entry.
Entries are removed from databases withPMDFdatabaseDeleteEntry
. In the case of duplicate entries, multiple calls are required to remove all entries --- one call per entry. If the specified database is not already opened, then it will be opened automatically. When no more database accesses are to be performed, the database should be closed withPMDFdatabaseClose
. See the description ofPMDFdatabaseAddEntry
for a list of the legal values for database.
PMDF__OK Normal, successful completion. PMDF__BAD Bad parameter value: illegal value specified for database. No entry deleted. PMDF__NO No matching entry found. No entry deleted. PMDF__CANOPNDAT Database could not be opened or does not exist. PMDF__CANTUPDAT Cannot update the database. Attempt to delete an entry failed. PMDF__ENTWONFIT Length of entry too long for database. No entry deleted. PMDF__INVSTRDES Invalid string descriptor for entry: descriptor has an invalid value in its DSC$B_CLASS field. No entry deleted. PMDF__STRTRUERR Supplied string entry is too long. No entry deleted.
Previous | Next | Contents | Index |