MmdbGBBI.sgm 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!-- $XConsortium: MmdbGBBI.sgm /main/6 1996/09/08 20:06:23 rws $ -->
  2. <!-- (c) Copyright 1996 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1996 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1996 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1996 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1996 Novell, Inc. -->
  7. <!-- (c) Copyright 1996 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1996 Hitachi. -->
  9. <![ %CDE.C.CDE; [<refentry id="CDE.INFO.DtMmdbGetBookCaseByInde">]]><refmeta><refentrytitle>
  10. DtMmdbGetBookCaseByIndex</refentrytitle><manvolnum>library call</manvolnum></refmeta><refnamediv>
  11. <refname><function>DtMmdbGetBookCaseByIndex</function></refname><refpurpose>obtains
  12. a descriptor for a bookcase based on an infolib index</refpurpose></refnamediv><refsynopsisdiv>
  13. <funcsynopsis>
  14. <funcsynopsisinfo>#include &lt;DtMmdb.h></funcsynopsisinfo>
  15. <funcdef>int <function>DtMmdbGetBookCaseByIndex</function></funcdef>
  16. <paramdef>int <parameter>infolib_descriptor</parameter></paramdef>
  17. <paramdef>int <parameter>index</parameter></paramdef>
  18. </funcsynopsis>
  19. </refsynopsisdiv><refsect1>
  20. <title>DESCRIPTION</title>
  21. <para>The <function>DtMmdbGetBookCaseByIndex</function> function
  22. makes the database engine ready to provide access service for
  23. a bookcase. It allows you to access all bookcases in an infolib
  24. without knowing their names.
  25. </para>
  26. </refsect1><refsect1>
  27. <title>ARGUMENTS</title>
  28. <variablelist>
  29. <varlistentry><term><symbol role="Variable">infolib_descriptor</symbol></term>
  30. <listitem>
  31. <para>Specifies the infolib that contains the bookcase.</para>
  32. </listitem>
  33. </varlistentry>
  34. <varlistentry><term><symbol role="Variable">index</symbol></term>
  35. <listitem>
  36. <para>Specifies the index of the bookcase within the infolib.
  37. The value must be an integer in the
  38. range 0 to <emphasis>n</emphasis>-1, where
  39. <emphasis>n</emphasis> is the number of bookcases in the infolib.
  40. </para>
  41. </listitem>
  42. </varlistentry>
  43. </variablelist>
  44. </refsect1><refsect1>
  45. <title>RETURN VALUE</title>
  46. <para>If <function>DtMmdbGetBookCaseByIndex</function> completes
  47. successfully, it returns the descriptor for the bookcase.
  48. If it fails, it returns -1.
  49. </para>
  50. </refsect1><refsect1>
  51. <title>EXAMPLE</title>
  52. <para>The following shows how a <function>DtMmdbGetBookCaseByIndex</function> call
  53. might be coded.</para>
  54. <informalexample>
  55. <programlisting>DtMmdbGetBookCaseByIndex(myInfoLibDescriptor, i);
  56. </programlisting>
  57. </informalexample>
  58. </refsect1><refsect1>
  59. <title>SEE ALSO</title>
  60. <para>&cdeman.DtMmdbGetBookCaseByLoc;,
  61. &cdeman.DtMmdbGetBookCaseByLocs;,
  62. &cdeman.DtMmdbGetBookCaseByName;
  63. </para>
  64. </refsect1></refentry>