Database Functions



The C implementation of the database functions as they are used are almost all macros that implement them as though they were the verbs of the EDITOR language. The functions themselves return boolean values, and the macros define the functions within logical statements so that they look like boolean statements. For example the get routine is implemented as:

#define get(idx,key)    if (db_g_key(idx,key)) ;

so in your program the code would look like

get(idx, key) else {
    /* error condition */
}


The idea is to try to make it function more like it would in EDITOR. The page for each function will give first the #defined version, then also give the name and calling sequence of the 'real' function.

next  up