DNREC C-3

NAME

dnrec - return number of allocated records

SYNOPSIS

#include <cbase/dirio.h>

long dnrec (fcb)

DFILE *fcb;

DESCRIPTION

Dnrec returns the number of records allocated to an opened RMSfile. For "hashed" RMSfiles, this is the number of records specified when you last created or expanded the RMSfile. For non-hashed RMSfiles, dnrec returns the total number of deleted and active records currently in the RMSfile.

Fcb is the file block pointer returned by dlopen(C-3) or dopen(C-3).

SEE ALSO

dlopen(C-3), dopen(C-3)

makelf(C-1), expandlf(C-1)

Chapter 4,

RMS Programming Guide

C/Base Reference Manual Chapter 4, "Creating RMSfiles"

DIAGNOSTICS

Dnrec returns a value of BAD (-1) if fcb is not an opened file block pointer.