d>
</tr>
</table>
<table width="95%" align="center">
<tr><td>
Append the last <var>nelements</var> of the history list to <var>filename</var>. 
If <var>filename</var> is <code>NULL</code>, then append to <code>~/.history</code>. 
Returns 0 on success, or <code>errno</code> on a read or write error. 
</td></tr>
</table>

<p>
<table width="100%">
<tr>
<td align="left">int <b>history_truncate_file</b><i> </i>(<i>const char *filename, int nlines</i>)<i>
     </i></td>
<td align="right">Functie</td>
</tr>
</tabl