Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- db_VISTA III - d_keyread http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   D_KEYREAD

SUMMARY
   d_keyread(value)
   char *value;

ARGUMENTS
   value     Pointer to area where the value of the elast scanned key will be
             coppied.


DESCRIPTION
   This function reads the value of the last key found by a key retrieval
   function.It is intended to provide a mechanism whereby a key's value can
   be checked without having reads its associated records.


CURRENCY CHANGES
   None.

RETURN CODES

   4       S_KEYSEQ        Call to d_keyread before a key retrieval function
                           was called.


EXAMPLE

     char id[16];
     .......
     /*   display all databse related info records
          (those for which the id_code begins with "db")  */

         d_keyfind (ID_CODE,"db");    /* position to start of "db"s */

         while (d_keynext(ID_CODE)==S_OKAY)
          {
          d_keyread(id);
          if (strncmp(id,"db",2) break   /* no more "db" s */
          d_recread(&irec);
             ....  /* print info record contents   */

          }

See Also: d_keyfind d_keyfrst d_keylast d_keynext d_keyprev

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson