<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
  <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>term_io_protocol &mdash; Logtalk APIs v3.61.0-b01 documentation</title>
      <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
      <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
      <link rel="stylesheet" href="_static/css/custom.css" type="text/css" />
  <!--[if lt IE 9]>
    <script src="_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
        <script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
        <script src="_static/jquery.js"></script>
        <script src="_static/underscore.js"></script>
        <script src="_static/_sphinx_javascript_frameworks_compat.js"></script>
        <script src="_static/doctools.js"></script>
        <script src="_static/sphinx_highlight.js"></script>
    <script src="_static/js/theme.js"></script>
    <!-- begin favicon -->
    <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
    <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
    <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
    <link rel="manifest" href="/site.webmanifest" />
    <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5" />
    <meta name="msapplication-TileColor" content="#355b95" />
    <meta name="theme-color" content="#ffffff" />
    <!-- end favicon -->
    
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="next" title="timeout" href="timeout_0.html" />
    <link rel="prev" title="term_io" href="term_io_0.html" />
   
</head>

<body class="wy-body-for-nav"> 
  <div class="wy-grid-for-nav">
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search" >
            <a href="index.html" class="icon icon-home"> Logtalk APIs
            <img src="_static/logtalk.gif" class="logo" alt="Logo"/>
          </a>
              <div class="version">
                3.61.0
              </div>
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>
        </div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
    
              <p class="caption" role="heading"><span class="caption-text">Contents</span></p>
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal" href="library_index.html">Libraries</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="library_index.html#arbitrary"><span class="xref std std-ref">arbitrary</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#assertions"><span class="xref std std-ref">assertions</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#assignvars"><span class="xref std std-ref">assignvars</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#base64"><span class="xref std std-ref">base64</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#cbor"><span class="xref std std-ref">cbor</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#code-metrics"><span class="xref std std-ref">code_metrics</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#core"><span class="xref std std-ref">core</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#coroutining"><span class="xref std std-ref">coroutining</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#csv"><span class="xref std std-ref">csv</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#dates"><span class="xref std std-ref">dates</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#dead-code-scanner"><span class="xref std std-ref">dead_code_scanner</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#debug-messages"><span class="xref std std-ref">debug_messages</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#debugger"><span class="xref std std-ref">debugger</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#dependents"><span class="xref std std-ref">dependents</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#diagrams"><span class="xref std std-ref">diagrams</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#dictionaries"><span class="xref std std-ref">dictionaries</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#dif"><span class="xref std std-ref">dif</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#doclet"><span class="xref std std-ref">doclet</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#edcg"><span class="xref std std-ref">edcg</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#events"><span class="xref std std-ref">events</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#expand-library-alias-paths"><span class="xref std std-ref">expand_library_alias_paths</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#expecteds"><span class="xref std std-ref">expecteds</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#fcube"><span class="xref std std-ref">fcube</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#flags"><span class="xref std std-ref">flags</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#format"><span class="xref std std-ref">format</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#genint"><span class="xref std std-ref">genint</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#gensym"><span class="xref std std-ref">gensym</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#git"><span class="xref std std-ref">git</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#grammars"><span class="xref std std-ref">grammars</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#heaps"><span class="xref std std-ref">heaps</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#help"><span class="xref std std-ref">help</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#hierarchies"><span class="xref std std-ref">hierarchies</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#hook-flows"><span class="xref std std-ref">hook_flows</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#hook-objects"><span class="xref std std-ref">hook_objects</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#html"><span class="xref std std-ref">html</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#ids"><span class="xref std std-ref">ids</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#intervals"><span class="xref std std-ref">intervals</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#iso8601"><span class="xref std std-ref">iso8601</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#issue-creator"><span class="xref std std-ref">issue_creator</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#java"><span class="xref std std-ref">java</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#json"><span class="xref std std-ref">json</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#lgtdoc"><span class="xref std std-ref">lgtdoc</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#lgtunit"><span class="xref std std-ref">lgtunit</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#library"><span class="xref std std-ref">library</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#logging"><span class="xref std std-ref">logging</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#loops"><span class="xref std std-ref">loops</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#meta"><span class="xref std std-ref">meta</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#meta-compiler"><span class="xref std std-ref">meta_compiler</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#metagol"><span class="xref std std-ref">metagol</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#nested-dictionaries"><span class="xref std std-ref">nested_dictionaries</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#optionals"><span class="xref std std-ref">optionals</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#options"><span class="xref std std-ref">options</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#os"><span class="xref std std-ref">os</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#packs"><span class="xref std std-ref">packs</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#pddl-parser"><span class="xref std std-ref">pddl_parser</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#ports-profiler"><span class="xref std std-ref">ports_profiler</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#queues"><span class="xref std std-ref">queues</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#random"><span class="xref std std-ref">random</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#reader"><span class="xref std std-ref">reader</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#redis"><span class="xref std std-ref">redis</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#sets"><span class="xref std std-ref">sets</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#statistics"><span class="xref std std-ref">statistics</span></a></li>
<li class="toctree-l2 current"><a class="reference internal" href="library_index.html#term-io"><span class="xref std std-ref">term_io</span></a><ul class="current">
<li class="toctree-l3"><a class="reference internal" href="term_io_0.html">term_io</a></li>
<li class="toctree-l3 current"><a class="current reference internal" href="#">term_io_protocol</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#timeout"><span class="xref std std-ref">timeout</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#toychr"><span class="xref std std-ref">toychr</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#tutor"><span class="xref std std-ref">tutor</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#types"><span class="xref std std-ref">types</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#union-find"><span class="xref std std-ref">union_find</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#uuid"><span class="xref std std-ref">uuid</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#verdi-neruda"><span class="xref std std-ref">verdi_neruda</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#wrapper"><span class="xref std std-ref">wrapper</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#xml-parser"><span class="xref std std-ref">xml_parser</span></a></li>
<li class="toctree-l2"><a class="reference internal" href="library_index.html#zippers"><span class="xref std std-ref">zippers</span></a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="directory_index.html">Directories</a></li>
<li class="toctree-l1"><a class="reference internal" href="entity_index.html">Entities</a></li>
<li class="toctree-l1"><a class="reference internal" href="predicate_index.html">Predicates</a></li>
</ul>

    <ul>
    <li class="toctree-l1"><a class="reference internal" href="core_inheritance_diagram.svg">Core diagram</a></li>
    <li class="toctree-l1"><a class="reference internal" href="library_inheritance_diagram.svg">Libraries diagram</a></li>
    <li class="toctree-l1"><a class="reference internal" href="tools_inheritance_diagram.svg">Tools diagram</a></li>
    <li class="toctree-l1"><a class="reference internal" href="ports_inheritance_diagram.svg">Ports diagram</a></li>
    <li class="toctree-l1"><a class="reference internal" href="contributions_inheritance_diagram.svg">Contributions diagram</a></li>
    <li class="toctree-l1"><a class="reference internal" href="genindex.html">Index</a></li>
    </ul>
    <p class="caption"><span class="caption-text">External Contents</span></p>
    <ul>
    <li class="toctree-l1"><a class="reference internal" href="../manuals/index.html">Handbook</a></li>
    <li class="toctree-l1"><a class="reference internal" href="https://logtalk.org">Logtalk website</a></li>
    <li class="toctree-l1"><a class="reference internal" href="https://github.com/LogtalkDotOrg/logtalk3">GitHub repo</a></li>
    </ul>
  
        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="index.html">Logtalk APIs</a>
      </nav>

      <div class="wy-nav-content">
        <div class="rst-content">
          <div role="navigation" aria-label="Page navigation">
  <ul class="wy-breadcrumbs">
      <li><a href="index.html" class="icon icon-home"></a> &raquo;</li>
          <li><a href="library_index.html">Libraries</a> &raquo;</li>
      <li><code class="docutils literal notranslate"><span class="pre">term_io_protocol</span></code></li>
      <li class="wy-breadcrumbs-aside">
            <a href="_sources/term_io_protocol_0.rst.txt" rel="nofollow"> View page source</a>
      </li>
  </ul>
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
             
  <p class="right" id="term-io-protocol-0"><span id="index-0"></span><strong>protocol</strong></p>
<section id="term-io-protocol">
<h1><code class="docutils literal notranslate"><span class="pre">term_io_protocol</span></code><a class="headerlink" href="#term-io-protocol" title="Permalink to this heading"></a></h1>
<p>Predicates for term input/output from/to atom, chars, and codes. The predicates are declared as synchronized when the library is compiled using a backend supporting threads.</p>
<div class="line-block">
<div class="line"><strong>Author:</strong> Paulo Moura</div>
<div class="line"><strong>Version:</strong> 1:3:0</div>
<div class="line"><strong>Date:</strong> 2021-10-04</div>
</div>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Dependencies:</strong></div>
<div class="line-block">
<div class="line">(none)</div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Remarks:</strong></div>
</div>
<blockquote>
<div><ul class="simple">
<li><p>Portability notes: To keep calls to these library predicates portable, use only standard read/write options and specify output formats using atoms.</p></li>
</ul>
</div></blockquote>
<div class="line-block">
<div class="line"><strong>Inherited public predicates:</strong></div>
<div class="line-block">
<div class="line">(none)</div>
</div>
</div>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><p><a class="reference internal" href="#public-predicates" id="id1">Public predicates</a></p>
<ul>
<li><p><a class="reference internal" href="#read-term-from-atom-3" id="id2"><code class="docutils literal notranslate"><span class="pre">read_term_from_atom/3</span></code></a></p></li>
<li><p><a class="reference internal" href="#read-from-atom-2" id="id3"><code class="docutils literal notranslate"><span class="pre">read_from_atom/2</span></code></a></p></li>
<li><p><a class="reference internal" href="#read-term-from-chars-3" id="id4"><code class="docutils literal notranslate"><span class="pre">read_term_from_chars/3</span></code></a></p></li>
<li><p><a class="reference internal" href="#read-term-from-chars-4" id="id5"><code class="docutils literal notranslate"><span class="pre">read_term_from_chars/4</span></code></a></p></li>
<li><p><a class="reference internal" href="#read-from-chars-2" id="id6"><code class="docutils literal notranslate"><span class="pre">read_from_chars/2</span></code></a></p></li>
<li><p><a class="reference internal" href="#read-term-from-codes-3" id="id7"><code class="docutils literal notranslate"><span class="pre">read_term_from_codes/3</span></code></a></p></li>
<li><p><a class="reference internal" href="#read-term-from-codes-4" id="id8"><code class="docutils literal notranslate"><span class="pre">read_term_from_codes/4</span></code></a></p></li>
<li><p><a class="reference internal" href="#read-from-codes-2" id="id9"><code class="docutils literal notranslate"><span class="pre">read_from_codes/2</span></code></a></p></li>
<li><p><a class="reference internal" href="#write-term-to-atom-3" id="id10"><code class="docutils literal notranslate"><span class="pre">write_term_to_atom/3</span></code></a></p></li>
<li><p><a class="reference internal" href="#write-to-atom-2" id="id11"><code class="docutils literal notranslate"><span class="pre">write_to_atom/2</span></code></a></p></li>
<li><p><a class="reference internal" href="#write-term-to-chars-3" id="id12"><code class="docutils literal notranslate"><span class="pre">write_term_to_chars/3</span></code></a></p></li>
<li><p><a class="reference internal" href="#write-term-to-chars-4" id="id13"><code class="docutils literal notranslate"><span class="pre">write_term_to_chars/4</span></code></a></p></li>
<li><p><a class="reference internal" href="#write-to-chars-2" id="id14"><code class="docutils literal notranslate"><span class="pre">write_to_chars/2</span></code></a></p></li>
<li><p><a class="reference internal" href="#write-term-to-codes-3" id="id15"><code class="docutils literal notranslate"><span class="pre">write_term_to_codes/3</span></code></a></p></li>
<li><p><a class="reference internal" href="#write-term-to-codes-4" id="id16"><code class="docutils literal notranslate"><span class="pre">write_term_to_codes/4</span></code></a></p></li>
<li><p><a class="reference internal" href="#write-to-codes-2" id="id17"><code class="docutils literal notranslate"><span class="pre">write_to_codes/2</span></code></a></p></li>
<li><p><a class="reference internal" href="#format-to-atom-3" id="id18"><code class="docutils literal notranslate"><span class="pre">format_to_atom/3</span></code></a></p></li>
<li><p><a class="reference internal" href="#format-to-chars-3" id="id19"><code class="docutils literal notranslate"><span class="pre">format_to_chars/3</span></code></a></p></li>
<li><p><a class="reference internal" href="#format-to-chars-4" id="id20"><code class="docutils literal notranslate"><span class="pre">format_to_chars/4</span></code></a></p></li>
<li><p><a class="reference internal" href="#format-to-codes-3" id="id21"><code class="docutils literal notranslate"><span class="pre">format_to_codes/3</span></code></a></p></li>
<li><p><a class="reference internal" href="#format-to-codes-4" id="id22"><code class="docutils literal notranslate"><span class="pre">format_to_codes/4</span></code></a></p></li>
<li><p><a class="reference internal" href="#with-output-to-2" id="id23"><code class="docutils literal notranslate"><span class="pre">with_output_to/2</span></code></a></p></li>
</ul>
</li>
<li><p><a class="reference internal" href="#protected-predicates" id="id24">Protected predicates</a></p></li>
<li><p><a class="reference internal" href="#private-predicates" id="id25">Private predicates</a></p></li>
<li><p><a class="reference internal" href="#operators" id="id26">Operators</a></p></li>
</ul>
</div>
<section id="public-predicates">
<h2><a class="toc-backref" href="#contents">Public predicates</a><a class="headerlink" href="#public-predicates" title="Permalink to this heading"></a></h2>
<section id="read-term-from-atom-3">
<span id="term-io-protocol-0-read-term-from-atom-3"></span><span id="index-1"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">read_term_from_atom/3</span></code></a><a class="headerlink" href="#read-term-from-atom-3" title="Permalink to this heading"></a></h3>
<p>Reads a term from an atom using the given read options. A period at the end of the atom is optional. Valid options are those supported by the standard <code class="docutils literal notranslate"><span class="pre">read_term/3</span></code> predicate.</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static,</span> <span class="pre">synchronized</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">read_term_from_atom(Atom,Term,Options)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">read_term_from_atom(+atom,-term,+list(read_option))</span></code> - <code class="docutils literal notranslate"><span class="pre">one_or_error</span></code></div>
</div>
</div>
<hr class="docutils" />
</section>
<section id="read-from-atom-2">
<span id="term-io-protocol-0-read-from-atom-2"></span><span id="index-2"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">read_from_atom/2</span></code></a><a class="headerlink" href="#read-from-atom-2" title="Permalink to this heading"></a></h3>
<p>Reads a term from an atom using default read options. Shorthand for <code class="docutils literal notranslate"><span class="pre">read_term_from_atom(Atom,Term,[])</span></code>. A period at the end of the atom is optional.</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">read_from_atom(Atom,Term)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">read_from_atom(+atom,-term)</span></code> - <code class="docutils literal notranslate"><span class="pre">one_or_error</span></code></div>
</div>
</div>
<hr class="docutils" />
</section>
<section id="read-term-from-chars-3">
<span id="term-io-protocol-0-read-term-from-chars-3"></span><span id="index-3"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">read_term_from_chars/3</span></code></a><a class="headerlink" href="#read-term-from-chars-3" title="Permalink to this heading"></a></h3>
<p>Reads a term from a list of characters using the given read options. A period at the end of the list is optional. Valid options are those supported by the standard <code class="docutils literal notranslate"><span class="pre">read_term/3</span></code> predicate.</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static,</span> <span class="pre">synchronized</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">read_term_from_chars(Chars,Term,Options)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">read_term_from_chars(+list(character),-term,+list(read_option))</span></code> - <code class="docutils literal notranslate"><span class="pre">one_or_error</span></code></div>
</div>
</div>
<hr class="docutils" />
</section>
<section id="read-term-from-chars-4">
<span id="term-io-protocol-0-read-term-from-chars-4"></span><span id="index-4"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">read_term_from_chars/4</span></code></a><a class="headerlink" href="#read-term-from-chars-4" title="Permalink to this heading"></a></h3>
<p>Reads a term from a list of characters using the given read options, also returning the remaining characters. A period at the end of the term is required. Valid options are those supported by the standard <code class="docutils literal notranslate"><span class="pre">read_term/3</span></code> predicate.</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">read_term_from_chars(Chars,Term,Tail,Options)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">read_term_from_chars(+list(character),-term,-list(character),+list(read_option))</span></code> - <code class="docutils literal notranslate"><span class="pre">one_or_error</span></code></div>
</div>
</div>
<hr class="docutils" />
</section>
<section id="read-from-chars-2">
<span id="term-io-protocol-0-read-from-chars-2"></span><span id="index-5"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">read_from_chars/2</span></code></a><a class="headerlink" href="#read-from-chars-2" title="Permalink to this heading"></a></h3>
<p>Reads a term from a list of characters using default read options. Shorthand for <code class="docutils literal notranslate"><span class="pre">read_term_from_chars(Chars,Term,[])</span></code>. A period at the end of the list is optional.</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">read_from_chars(Chars,Term)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">read_from_chars(+list(character),-term)</span></code> - <code class="docutils literal notranslate"><span class="pre">one_or_error</span></code></div>
</div>
</div>
<hr class="docutils" />
</section>
<section id="read-term-from-codes-3">
<span id="term-io-protocol-0-read-term-from-codes-3"></span><span id="index-6"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">read_term_from_codes/3</span></code></a><a class="headerlink" href="#read-term-from-codes-3" title="Permalink to this heading"></a></h3>
<p>Reads a term from a list of character codes using the given read options. A period at the end of the list is optional. Valid options are those supported by the standard <code class="docutils literal notranslate"><span class="pre">read_term/3</span></code> predicate.</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static,</span> <span class="pre">synchronized</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">read_term_from_codes(Codes,Term,Options)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">read_term_from_codes(+list(character_code),-term,+list(read_option))</span></code> - <code class="docutils literal notranslate"><span class="pre">one_or_error</span></code></div>
</div>
</div>
<hr class="docutils" />
</section>
<section id="read-term-from-codes-4">
<span id="term-io-protocol-0-read-term-from-codes-4"></span><span id="index-7"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">read_term_from_codes/4</span></code></a><a class="headerlink" href="#read-term-from-codes-4" title="Permalink to this heading"></a></h3>
<p>Reads a term from a list of character codes using the given read options, also returning the remaining character codes. A period at the end of the term is required. Valid options are those supported by the standard <code class="docutils literal notranslate"><span class="pre">read_term/3</span></code> predicate.</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">read_term_from_codes(Codes,Term,Tail,Options)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">read_term_from_codes(+list(character_code),-term,-list(character_code),+list(read_option))</span></code> - <code class="docutils literal notranslate"><span class="pre">one_or_error</span></code></div>
</div>
</div>
<hr class="docutils" />
</section>
<section id="read-from-codes-2">
<span id="term-io-protocol-0-read-from-codes-2"></span><span id="index-8"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">read_from_codes/2</span></code></a><a class="headerlink" href="#read-from-codes-2" title="Permalink to this heading"></a></h3>
<p>Reads a term from a list of character codes using default read options. Shorthand for <code class="docutils literal notranslate"><span class="pre">read_term_from_codes(Codes,Term,[])</span></code>. A period at the end of the list is optional.</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">read_from_codes(Codes,Term)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">read_from_codes(+list(character_code),-term)</span></code> - <code class="docutils literal notranslate"><span class="pre">one_or_error</span></code></div>
</div>
</div>
<hr class="docutils" />
</section>
<section id="write-term-to-atom-3">
<span id="term-io-protocol-0-write-term-to-atom-3"></span><span id="index-9"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">write_term_to_atom/3</span></code></a><a class="headerlink" href="#write-term-to-atom-3" title="Permalink to this heading"></a></h3>
<p>Writes a term to an atom using the given write options. Valid options are those supported by the standard <code class="docutils literal notranslate"><span class="pre">write_term/3</span></code> predicate.</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static,</span> <span class="pre">synchronized</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">write_term_to_atom(Term,Atom,Options)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">write_term_to_atom(&#64;term,-atom,+list(write_option))</span></code> - <code class="docutils literal notranslate"><span class="pre">one</span></code></div>
</div>
</div>
<hr class="docutils" />
</section>
<section id="write-to-atom-2">
<span id="term-io-protocol-0-write-to-atom-2"></span><span id="index-10"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">write_to_atom/2</span></code></a><a class="headerlink" href="#write-to-atom-2" title="Permalink to this heading"></a></h3>
<p>Writes a term to an atom using default write options. Shorthand for <code class="docutils literal notranslate"><span class="pre">write_term_to_atom(Term,Atom,[])</span></code>.</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">write_to_atom(Term,Atom)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">write_to_atom(&#64;term,-atom)</span></code> - <code class="docutils literal notranslate"><span class="pre">one</span></code></div>
</div>
</div>
<hr class="docutils" />
</section>
<section id="write-term-to-chars-3">
<span id="term-io-protocol-0-write-term-to-chars-3"></span><span id="index-11"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">write_term_to_chars/3</span></code></a><a class="headerlink" href="#write-term-to-chars-3" title="Permalink to this heading"></a></h3>
<p>Writes a term to a list of characters using the given write options. Shorthand for <code class="docutils literal notranslate"><span class="pre">write_term_to_chars(Term,Chars,[],Options)</span></code>. Valid options are those supported by the standard <code class="docutils literal notranslate"><span class="pre">write_term/3</span></code> predicate.</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">write_term_to_chars(Term,Chars,Options)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">write_term_to_chars(&#64;term,-list(character),+list(write_option))</span></code> - <code class="docutils literal notranslate"><span class="pre">one</span></code></div>
</div>
</div>
<hr class="docutils" />
</section>
<section id="write-term-to-chars-4">
<span id="term-io-protocol-0-write-term-to-chars-4"></span><span id="index-12"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">write_term_to_chars/4</span></code></a><a class="headerlink" href="#write-term-to-chars-4" title="Permalink to this heading"></a></h3>
<p>Writes a term to a list of characters with the given tail using the given write options. Valid options are those supported by the standard <code class="docutils literal notranslate"><span class="pre">write_term/3</span></code> predicate.</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static,</span> <span class="pre">synchronized</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">write_term_to_chars(Term,Chars,Tail,Options)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">write_term_to_chars(&#64;term,-list(character),&#64;term,+list(write_option))</span></code> - <code class="docutils literal notranslate"><span class="pre">one</span></code></div>
</div>
</div>
<hr class="docutils" />
</section>
<section id="write-to-chars-2">
<span id="term-io-protocol-0-write-to-chars-2"></span><span id="index-13"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">write_to_chars/2</span></code></a><a class="headerlink" href="#write-to-chars-2" title="Permalink to this heading"></a></h3>
<p>Writes a term to a list of characters using default write options. Shorthand for <code class="docutils literal notranslate"><span class="pre">write_term_to_chars(Term,Chars,[],[])</span></code>.</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">write_to_chars(Term,Chars)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">write_to_chars(&#64;term,-list(character))</span></code> - <code class="docutils literal notranslate"><span class="pre">one</span></code></div>
</div>
</div>
<hr class="docutils" />
</section>
<section id="write-term-to-codes-3">
<span id="term-io-protocol-0-write-term-to-codes-3"></span><span id="index-14"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">write_term_to_codes/3</span></code></a><a class="headerlink" href="#write-term-to-codes-3" title="Permalink to this heading"></a></h3>
<p>Writes a term to a list of character codes using the given write options. Shorthand for <code class="docutils literal notranslate"><span class="pre">write_term_to_codes(Term,Codes,[],Options)</span></code>. Valid options are those supported by the standard <code class="docutils literal notranslate"><span class="pre">write_term/3</span></code> predicate.</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">write_term_to_codes(Term,Codes,Options)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">write_term_to_codes(&#64;term,-list(character_code),+list(write_option))</span></code> - <code class="docutils literal notranslate"><span class="pre">one</span></code></div>
</div>
</div>
<hr class="docutils" />
</section>
<section id="write-term-to-codes-4">
<span id="term-io-protocol-0-write-term-to-codes-4"></span><span id="index-15"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">write_term_to_codes/4</span></code></a><a class="headerlink" href="#write-term-to-codes-4" title="Permalink to this heading"></a></h3>
<p>Writes a term to a list of character codes with the given tail using the given write options. Valid options are those supported by the standard <code class="docutils literal notranslate"><span class="pre">write_term/3</span></code> predicate.</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static,</span> <span class="pre">synchronized</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">write_term_to_codes(Term,Codes,Tail,Options)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">write_term_to_codes(&#64;term,-list(character_code),&#64;term,+list(write_option))</span></code> - <code class="docutils literal notranslate"><span class="pre">one</span></code></div>
</div>
</div>
<hr class="docutils" />
</section>
<section id="write-to-codes-2">
<span id="term-io-protocol-0-write-to-codes-2"></span><span id="index-16"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">write_to_codes/2</span></code></a><a class="headerlink" href="#write-to-codes-2" title="Permalink to this heading"></a></h3>
<p>Writes a term to a list of character codes using default write options. Shorthand for <code class="docutils literal notranslate"><span class="pre">write_term_to_chars(Term,Codes,[],[])</span></code>.</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">write_to_codes(Term,Codes)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">write_to_codes(&#64;term,-list(character_code))</span></code> - <code class="docutils literal notranslate"><span class="pre">one</span></code></div>
</div>
</div>
<hr class="docutils" />
</section>
<section id="format-to-atom-3">
<span id="term-io-protocol-0-format-to-atom-3"></span><span id="index-17"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">format_to_atom/3</span></code></a><a class="headerlink" href="#format-to-atom-3" title="Permalink to this heading"></a></h3>
<p>Writes a list of arguments to an atom using the given format (specified as in the de facto standard <code class="docutils literal notranslate"><span class="pre">format/2</span></code> predicate).</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static,</span> <span class="pre">synchronized</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">format_to_atom(Format,Arguments,Atom)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">format_to_atom(&#64;atom,+list(term),-atom)</span></code> - <code class="docutils literal notranslate"><span class="pre">one</span></code></div>
</div>
</div>
<hr class="docutils" />
</section>
<section id="format-to-chars-3">
<span id="term-io-protocol-0-format-to-chars-3"></span><span id="index-18"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">format_to_chars/3</span></code></a><a class="headerlink" href="#format-to-chars-3" title="Permalink to this heading"></a></h3>
<p>Writes a list of arguments to a list of characters using the given format (specified as in the de facto standard <code class="docutils literal notranslate"><span class="pre">format/2</span></code> predicate). Shorthand for <code class="docutils literal notranslate"><span class="pre">format_to_chars(Format,Arguments,Chars,[])</span></code>.</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">format_to_chars(Format,Arguments,Chars)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">format_to_chars(&#64;term,+list(term),-list(character))</span></code> - <code class="docutils literal notranslate"><span class="pre">one</span></code></div>
</div>
</div>
<hr class="docutils" />
</section>
<section id="format-to-chars-4">
<span id="term-io-protocol-0-format-to-chars-4"></span><span id="index-19"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">format_to_chars/4</span></code></a><a class="headerlink" href="#format-to-chars-4" title="Permalink to this heading"></a></h3>
<p>Writes a term to a list of characters with the given tail using the given format (specified as in the de facto standard <code class="docutils literal notranslate"><span class="pre">format/2</span></code> predicate).</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static,</span> <span class="pre">synchronized</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">format_to_chars(Format,Arguments,Chars,Tail)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">format_to_chars(&#64;term,+list(term),-list(character),&#64;term)</span></code> - <code class="docutils literal notranslate"><span class="pre">one</span></code></div>
</div>
</div>
<hr class="docutils" />
</section>
<section id="format-to-codes-3">
<span id="term-io-protocol-0-format-to-codes-3"></span><span id="index-20"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">format_to_codes/3</span></code></a><a class="headerlink" href="#format-to-codes-3" title="Permalink to this heading"></a></h3>
<p>Writes a list of arguments to a list of character codes using the given format (specified as in the de facto standard <code class="docutils literal notranslate"><span class="pre">format/2</span></code> predicate). Shorthand for <code class="docutils literal notranslate"><span class="pre">format_to_codes(Format,Arguments,Codes,[])</span></code>.</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">format_to_codes(Format,Arguments,Codes)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">format_to_codes(&#64;term,+list(term),-list(character_code))</span></code> - <code class="docutils literal notranslate"><span class="pre">one</span></code></div>
</div>
</div>
<hr class="docutils" />
</section>
<section id="format-to-codes-4">
<span id="term-io-protocol-0-format-to-codes-4"></span><span id="index-21"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">format_to_codes/4</span></code></a><a class="headerlink" href="#format-to-codes-4" title="Permalink to this heading"></a></h3>
<p>Writes a list of arguments to a list of character codes with the given tail using the given format (specified as in the de facto standard <code class="docutils literal notranslate"><span class="pre">format/2</span></code> predicate).</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static,</span> <span class="pre">synchronized</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">format_to_codes(Format,Arguments,Codes,Tail)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">format_to_codes(&#64;term,+list(term),-list(character_code),&#64;term)</span></code> - <code class="docutils literal notranslate"><span class="pre">one</span></code></div>
</div>
</div>
<hr class="docutils" />
</section>
<section id="with-output-to-2">
<span id="term-io-protocol-0-with-output-to-2"></span><span id="index-22"></span><h3><a class="toc-backref" href="#contents"><code class="docutils literal notranslate"><span class="pre">with_output_to/2</span></code></a><a class="headerlink" href="#with-output-to-2" title="Permalink to this heading"></a></h3>
<p>Calls a goal deterministically with output to the given format: <code class="docutils literal notranslate"><span class="pre">atom(Atom)</span></code>, <code class="docutils literal notranslate"><span class="pre">chars(Chars)</span></code>, <code class="docutils literal notranslate"><span class="pre">chars(Chars,Tail)</span></code>, <code class="docutils literal notranslate"><span class="pre">codes(Codes)</span></code>, or <code class="docutils literal notranslate"><span class="pre">codes(Codes,Tail)</span></code>.</p>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">static,</span> <span class="pre">synchronized</span></code></div>
</div>
</div>
<div class="line-block">
<div class="line"><strong>Template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">with_output_to(Output,Goal)</span></code></div>
</div>
<div class="line"><strong>Meta-predicate template:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">with_output_to(*,0)</span></code></div>
</div>
<div class="line"><strong>Mode and number of proofs:</strong></div>
<div class="line-block">
<div class="line"><code class="docutils literal notranslate"><span class="pre">with_output_to(+compound,+callable)</span></code> - <code class="docutils literal notranslate"><span class="pre">zero_or_one</span></code></div>
</div>
</div>
</section>
</section>
<hr class="docutils" />
<section id="protected-predicates">
<h2><a class="toc-backref" href="#contents">Protected predicates</a><a class="headerlink" href="#protected-predicates" title="Permalink to this heading"></a></h2>
<p>(none)</p>
</section>
<section id="private-predicates">
<h2><a class="toc-backref" href="#contents">Private predicates</a><a class="headerlink" href="#private-predicates" title="Permalink to this heading"></a></h2>
<p>(none)</p>
</section>
<section id="operators">
<h2><a class="toc-backref" href="#contents">Operators</a><a class="headerlink" href="#operators" title="Permalink to this heading"></a></h2>
<p>(none)</p>
</section>
</section>


           </div>
          </div>
          <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
        <a href="term_io_0.html" class="btn btn-neutral float-left" title="term_io" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
        <a href="timeout_0.html" class="btn btn-neutral float-right" title="timeout" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
    </div>

  <hr/>

  <div role="contentinfo">
    <p>&#169; Copyright 1998-2022, Paulo Moura.</p>
  </div>

  Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
    <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
    provided by <a href="https://readthedocs.org">Read the Docs</a>.
   

</footer>
        </div>
      </div>
    </section>
  </div>
  <script>
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script> 

</body>
</html>