DSC Tech Library
FASTPLUS C Library
fpkey_delete()
Function fpkey_delete is used to delete an index key value.
The syntax for fpkey_delete is as follows:
fpkey_delete(int file_id, int index, char *keyval_found, int *recno)
int file_id - File unit of open file from previous
fpfile_open function.
int index - Index number to search on.
char *keyval_found - Value of original "old" key to be changed.
int *recno - Record address from a previous get/lock operation.
The possible values for fperrno and an explanation of each value follow.
Value Explanation
--------------------------------------------------
FEROK - Code 0: Successful FASTPLUS Operation
FERACC - Code 2: Illegal access rights
FEROPN - Code 5: FAST file does not exist
FERUNT - Code 6: Illegal FAST file id
FERLEN - Code 7: Illegal record length
FERFHE - Code 9: System file error
FERIND - Code 10: Illegal index number
FEREXT - Code 12: Record not found
|