Mission Base

Program Base Library Functions

int pblIsamInsertArgcArgv

( pblIsamFile_t* isamfile, int argc,
  char* argv[],
  pointers to all keys to insert* / void* data,
  size_t datalen )

insert a new record with the given keys and data into the isam file,

Documentation

insert a new record with the given keys and data into the isam file,

the current record of the file will be set to the new record

RESTRICTIONS:
- the file must be open for update,
- argc must be the number of arguments in argv,
- argv must be a NULL terminated argument sequence,
- data must point to the data be inserted,
- datalen must not be negative,
- if datalen == 0, the pointer data is not evaluated at all

Parameters argc and argv are similar to the C main function arguments and must contain all values for all keys of the record.

Parameters:
isamfile - ISAM file to insert to
argc - number of arguments in argv
data - data to insert
datalen - length of the data
Returns:
int rc == 0: call went OK
int rc != 0: some error occurred, see pbl_errno

Alphabetic index



This page was generated with the help of DOC++.