Mission Base

Program Base Library Functions

int pblIsamSetCompareFunction

( pblIsamFile_t* isamfile,
  int index,
  int (* keycompare ) ( void* left,
  size_t llen, void* right,
  size_t rlen ) )

set an application specific compare function for a key of an ISAM file

Documentation

set an application specific compare function for a key of an ISAM file

parameter index specifies which of the indices to set the compare function for

an application specific compare function can be used in order to implement special orderings of the values of an index, e.g. because of the use of European "umlauts" in names

the default compare function is the c-library memcmp function the key compare function should behave like memcmp

Parameters:
isamfile - ISAM file to set function for
index - index of key to set function for
keycompare - compare function to set
left - "left" buffer for compare
llen - length of that buffer
right - "right" buffer for compare
rlen - length of that buffer
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++.