<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="prints">
  <refmeta>
    <refentrytitle>prints</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>prints</refname>
    <refpurpose>
      Prints at init-time using a printf() style syntax.
      <indexterm id="IndexPrints"><primary>prints</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Prints at init-time using a printf() style syntax.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis><command>prints</command> &quot;string&quot; [, kval1] [, kval2] [...]</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>&quot;string&quot;</emphasis> -- the text string to be printed. Can be up to 8192 characters and must be in double quotes.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>kval1, kval2, ...</emphasis> (optional) -- The k-rate values to be printed. These are specified in <emphasis><quote>string</quote></emphasis> with the standard C value specifier (%f, %d, etc.) in the order given. Use 0 for those which are not used.
    </para>

    <para>
      <emphasis>prints</emphasis> is similar to the <emphasis>printks</emphasis> opcode except it operates at init-time instead of k-rate. For more information about output formatting, please look at <link linkend="printks"><citetitle>printks's documentation</citetitle></link>.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Examples</title>
    <para>
      Here is an example of the prints opcode. It uses the files <ulink url="examples/prints.orc"><citetitle>prints.orc</citetitle></ulink> and <ulink url="examples/prints.sco"><citetitle>prints.sco</citetitle></ulink>.

      <example>
        <title>Example of the prints opcode.</title>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/prints.orc" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/prints.sco" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>
      </example>

      Its output should include a line like this:

      <screen>
1234.568        ;;;;;;semicolons!
      </screen>
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="printks"><citetitle>printks</citetitle></link>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: &namematt;</member>
        <member>January 2003</member>
      </simplelist>
    </para>
  </refsect1>
</refentry>
