MmdbTGNC.sgm 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!-- $XConsortium: MmdbTGNC.sgm /main/5 1996/09/08 20:09:34 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.DtMmdbTocGetNumOfChild">]]>
  10. <refmeta><refentrytitle>
  11. DtMmdbTocGetNumOfChildren</refentrytitle><manvolnum>library call</manvolnum></refmeta><refnamediv>
  12. <refname><function>DtMmdbTocGetNumOfChildren</function></refname><refpurpose>obtains
  13. the number of child sections</refpurpose></refnamediv><refsynopsisdiv>
  14. <funcsynopsis>
  15. <funcsynopsisinfo>#include &lt;DtMmdb.h></funcsynopsisinfo>
  16. <funcdef>int <function>DtMmdbTocGetNumOfChildren</function></funcdef>
  17. <paramdef>DtMmdbInfoRequest* <parameter>request</parameter></paramdef>
  18. </funcsynopsis>
  19. </refsynopsisdiv><refsect1>
  20. <title>DESCRIPTION</title>
  21. <para>The <function>DtMmdbTocGetNumOfChildren</function> function
  22. returns the number of child sections for the specified section.
  23. </para>
  24. </refsect1><refsect1>
  25. <title>ARGUMENTS</title>
  26. <variablelist>
  27. <varlistentry><term><symbol role="Variable">request</symbol></term>
  28. <listitem>
  29. <para>Specifies the bookcase in the bookcase descriptor field and
  30. the section's Database Engine identifier, in the
  31. <symbol role="Variable">primary_oid</symbol> field.
  32. </para>
  33. </listitem>
  34. </varlistentry>
  35. </variablelist>
  36. </refsect1><refsect1>
  37. <title>RETURN VALUE</title>
  38. <para>If <function>DtMmdbTocGetNumOfChildren</function> completes
  39. successfully, it returns the number of child sections.
  40. If it fails, it returns -1.
  41. </para>
  42. </refsect1><refsect1>
  43. <title>EXAMPLE</title>
  44. <para>The following shows how a <function>DtMmdbTocGetNumOfChildren</function> call
  45. might be coded.</para>
  46. <informalexample>
  47. <programlisting>DtMmdbInfoRequest request;
  48. /* fill the request here */
  49. n = DtMmdbTocGetNumOfChildren(&amp;request);
  50. </programlisting>
  51. </informalexample>
  52. </refsect1><refsect1>
  53. <title>SEE ALSO</title>
  54. <para>TO BE SUPPLIED
  55. </para>
  56. </refsect1></refentry>