mcDBinqFileAtt — Inquire database attributes
#include <memcom.h> int mcDBinqFileAtt(int handle, mcFileAttributes* fatt);
mcDBinqFileAtt
returns the file
attributes of an open MemCom database in
a structure of type mcFileAttributes
. The
structure mcFileAttributes
must be declared by
the calling function. The function returns 1 if the file attributes
have been found and 0 if not. If the file attributes have been found
and if fatt
is not NULL
, the
file attributes will be returned in fatt
.
handle
Database handle (input).
datt
Pointer to an existing structure of type
mcFileAttributes
(input).
mcFileAttributes
structure:
struct mcFileAttributes { float crvers; /* Creator version */ int plevel; /* Creator version patch level */ int endian; /* Creator endian (MC_ENDIAN_L or MC_ENDIAN_B) */ int addrsize; /* Creator address size (4 or 8) */ clock_t cdate; /* Creation UNIX time stamp */ clock_t adate; /* Last access UNIX time stamp */ mcOff naddr; /* Current length of db stream */ int setnsize; /* Maximum set name size */ int mode; /* Access mode mask */ int handle; /* Current handle */ int nentry; /* N. of sets */ int nhtentry; /* N. of hash table entries */ int nseta; /* N. of active sets */ };