• Antelope Release 5.10 Linux CentOS release 7.6.1810 (Core) 3.10.0 2020-05-12

 

NAME

dbfilename - compose filename from database record

SYNOPSIS

#include "db.h" ;

int dbfilename(Dbptr db, char *filename)

DESCRIPTION

Given a database pointer specifying a row in a table, dbfilename gets the dir and dfile from the row, and composes the file name by concatenating the directory of the database table, dir, and dfile. It also checks to see if the file exists, which it indicates by the return code.

RETURN VALUES

Return codes are:

If the file exists, its actual name is returned -- i.e., if the file is compressed, the return filename includes the .Z or .gz suffix.

LIBRARY

$(DBLIBS)

SEE ALSO

dbintro(3)

AUTHOR

Daniel Quinlan
Printer icon