ariables">History Variables</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Programming%20with%20GNU%20History">Programming with GNU History</a>
<br>
</div>

<h3 class="section">2.5 History Programming Example</h3>

<p>The following program demonstrates simple use of the <small>GNU</small> History Library.

<pre class="smallexample">     #include &lt;stdio.h&gt;
     #include &lt;readline/history.h&gt;
     
     main (argc, argv)
          int argc;
          char **argv;
     {
       char line[1024], *t;
