SUMMARY d_decode_dba (dba,file,slot) DB_ADDR dba; int *file; long *slot;
ARGUMENTS dba The database address to be decoded.
file A pointer to an int variable in which the file number will be returned.
slot A pointer to a long variable in which the slot number will be returned.
DESCRIPTION Function d_decode_dba extracts the file number and slot number from the specified database address,dba. The file number is returned in an int variable pointed to by file. The slot number is returned in a long variable pointed to by slot. The format of a database address is decribed in Section 11.2.2.1 and the use of d_decode_dba is explained in Section 6.4.3 of the USER's Guide.
CURRENCY CHANGES None
RETURN CODES No special codes.
EXAMPLE DB_ADDR dba; /* database address of cerrent record */ int file; /* file number */ long slot; /* slot number */ .... /* record to be displayed is current record */ d_crget(&dba); d_decode_dba (dba,&file,&slot); printf ("id number: %d %ld\n",file,slot);