DSC Tech Library
FASTPLUS C Library
fprecord_add()
Function fprecord_add adds records and all keys contained in the data record from
within an application program.
Function fprecord_add will return the record address of the added record on a
successful operation.
The syntax for fprecord_add is as follows:
fprecord_add(int file_id, char *record, int record_len)
int file_id - File unit of open file from previous
fpfile_open function.
char *record - Record buffer to add to file.
int record_len - Length of record to add.
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
FERDSK - Code 8: Disk is full
FERFHE - Code 9: System file error
FERIND - Code 10: Illegal index number
FERDUP - Code 11: Duplicate key value
|