#ident "$URL: svn://elmer/devel/SVN/SDDAS/trunk/libdB/GoToBottom.c $ %D% SwRI" #include "dbf.h" /********************** ** >FILE: GoToBottom.c **********************/ /********************************************** ** Function: int GoToBottom(int dbf, int ndx) ** ** int dbf heandle to database structure ** ** Description: ** ** Return Values: ** ***************** *****************/ dbRet_t GoToBottom(SDDAS_INT dbf, SDDAS_INT ndx) { dbfRecord_t *D; ndxRecord_t *N; if ((D = GetOldDbfHandle(dbf)) == NULL) return FAILURE; if (ndx != -1) { if ((N = GetOldNdxHandle(dbf, ndx)) == NULL) return FAILURE; N->IndexRec = D->NumRecs; return(GetDbfRecord(dbf, ItoR(N, N->IndexRec))); } return(GetDbfRecord(dbf, D->NumRecs)); }