DSC Tech Library
FASTPLUS C Library
fpdata_add()
Function fpdata_add adds data records from within an application program. The record
address is retuned for subsequent calls to fpkey routines.
The syntax for fpdata_add is as follows:
fpdata_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 with key values to be changed.
int record_len - Length of record to be returned, 0 = entire record.
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
|