[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
USAGE
   signed int scdibfrsz(
           signed int handle,
           signed int *numpgs,
           signed int command );

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scdibfrsz will either get (SC_GETSZ) or set (SC_SETSZ) the
   maximum number of index pages the library file manager can keep in memory
   and returns it via numpgs. This is under control of command.

EXAMPLE
   /* Get Size */
   #include <stdio.h>
   #include <softc.h>
   #include <sc_base.h>

   void main()
   {
     int idx, numpgs;

     scdinit(20,0);
     if (scdiopenx(&idx, "TOCNAME.IDX", SC_BUFFER) == SC_SUCCESS) {
       scdibfrsz(idx,&numpgs,SC_GETSZ) == SC_SUCCESS)
       printf("Maximum number of pages = %d\n",numpgs);
       scdiclose(idx);
     }
     scdterm();
   }

   /* Set Size */
   #include <stdio.h>
   #include <softc.h>
   #include <sc_base.h>

   void main()
   {
     char idx, numpgs = 5;

     scdinit(20,0);
     if (scdiopenx(&idx, "TOCNAME.IDX", SC_BUFFER) == SC_SUCCESS) {
       scdibfrsz(idx,&numpgs,SC_SETSZ);
       printf("New max = %d\n",numpgs);
       scdiclose(idx);
     }
     scdterm();
   }

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson