PrintCop.sgm 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <!-- $XConsortium: PrintCop.sgm /main/7 1996/08/30 13:11:08 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.XPRINT.DtPrintCopySetupData">]]>
  10. <![ %CDE.C.XO; [<refentry id="XCSA.XPRINT.DtPrintCopySetupData">]]>
  11. <refmeta><refentrytitle>
  12. DtPrintCopySetupData
  13. </refentrytitle><manvolnum>library call</manvolnum></refmeta><refnamediv>
  14. <refname><function>DtPrintCopySetupData</function></refname><refpurpose>
  15. copies one <StructName Role="typedef">DtPrintSetupData</StructName>
  16. structure to another
  17. </refpurpose></refnamediv><refsynopsisdiv>
  18. <funcsynopsis>
  19. <funcsynopsisinfo>#include &lt;Print.h></funcsynopsisinfo>
  20. <funcdef>DtPrintSetupData* <function>DtPrintCopySetupData</function></funcdef>
  21. <paramdef>DtPrintSetupData* <parameter>target</parameter></paramdef>
  22. <paramdef>const DtPrintSetupData* <parameter>source</parameter></paramdef>
  23. </funcsynopsis>
  24. </refsynopsisdiv><refsect1>
  25. <title>DESCRIPTION</title>
  26. <para>The <function>DtPrintCopySetupData</function> function
  27. copies the <StructName Role="typedef">DtPrintSetupData</StructName>
  28. structure pointed to by
  29. <symbol role="Variable">source</symbol> to the
  30. <StructName Role="typedef">DtPrintSetupData</StructName>
  31. structure pointed to by <symbol role="Variable">target</symbol>.
  32. Elements in <symbol role="Variable">target</symbol> are
  33. updated only if different than the
  34. corresponding elements in <symbol role="Variable">source</symbol>.
  35. </para>
  36. <para>For elements that point to allocated
  37. memory, <function>DtPrintCopySetupData</function> allocates
  38. new memory for those elements updated in
  39. <symbol role="Variable">target</symbol>. Existing elements in
  40. <symbol role="Variable">target</symbol> are freed using
  41. <function>XtFree</function>.
  42. All elements in a <StructName Role="typedef">DtPrintSetupData</StructName>
  43. structure can be freed by calling
  44. <function>DtPrintFreeSetupData</function>.
  45. </para>
  46. <para>If <symbol role="Variable">source</symbol> or
  47. <symbol role="Variable">target</symbol>
  48. is NULL, the copy will not be performed.
  49. </para>
  50. </refsect1><refsect1>
  51. <title>ARGUMENTS</title>
  52. <variablelist>
  53. <varlistentry><term><symbol role="Variable">target</symbol></term>
  54. <listitem>
  55. <para>A pointer to the
  56. <StructName Role="typedef">DtPrintSetupData</StructName>
  57. structure to copy to.
  58. </para>
  59. </listitem>
  60. </varlistentry>
  61. <varlistentry><term><symbol role="Variable">source</symbol></term>
  62. <listitem>
  63. <para>A pointer to the
  64. <StructName Role="typedef">DtPrintSetupData</StructName>
  65. structure to copy from.
  66. </para>
  67. </listitem>
  68. </varlistentry>
  69. </variablelist>
  70. </refsect1><refsect1>
  71. <title>RETURN VALUE</title>
  72. <para>If <function>DtPrintCopySetupData</function> completes
  73. successfully, it returns a pointer to the
  74. <symbol role="Variable">target</symbol> structure. If it fails,
  75. it returns a NULL pointer.
  76. </para>
  77. </refsect1><refsect1>
  78. <title>ENVIRONMENT VARIABLES</title>
  79. <para>None.
  80. </para>
  81. </refsect1><refsect1>
  82. <title>RESOURCES</title>
  83. <para>None.</para>
  84. </refsect1><refsect1>
  85. <title>ACTIONS/MESSAGES</title>
  86. <para>None.
  87. </para>
  88. </refsect1><refsect1>
  89. <title>ERRORS/WARNINGS</title>
  90. <para>None.</para>
  91. </refsect1><refsect1>
  92. <title>EXAMPLES</title>
  93. <para>None.
  94. </para>
  95. </refsect1><refsect1>
  96. <title>FILES</title>
  97. <para>None.
  98. </para>
  99. </refsect1><refsect1>
  100. <title>SEE ALSO</title>
  101. <para>&cdeman.DtPrintSetupBox;,
  102. &cdeman.DtPrintFreeSetupData;</para>
  103. </refsect1></refentry>