NAME
Dbxlat, Dbxlatn - translate table between DB integer codes and string definitions
SYNOPSIS
#include "db.h"
Xlat Dbxlat[] ;
int Dbxlatn ;
DESCRIPTION
Dbxlat is a static table of Dbxlatn Datascope constants -- like dbRECORD_COUNT and dbPRIMARY_KEY --
for use with the routines
xlatname(3) and
xlatnum(3). They are particularly useful for building
interfaces to Datascope routines from other languages such as perl(1),
tcl/tk or matlab.
EXAMPLE
{
char *string ;
int code ;
code = xlatname(string, Dbxlat, Dbxlatn);
.
.
.
dbquery ( db, code, &result ) ;
.
.
.
string = xlatnum ( result, Dbxlat, Dbxlatn ) ;
}
LIBRARY
$(DBLIBS)
SEE ALSO
xlat(3)
AUTHOR
Daniel Quinlan