7
#include <libpsio/psio.h>
15
** Set IWL Buffer's pointer to the end. Useful when want to append to
16
** an already existing file
18
** Edward Valeev, January 2001
21
void iwl_buf_toend(struct iwlbuf *Buf)
23
psio_tocentry *this_entry;
26
this_entry = psio_tocscan(Buf->itap, IWL_KEY_BUF);
27
if (this_entry == NULL) {
29
"iwl_buf_toend: Can't find IWL buffer entry in file %d\n", Buf->itap);
34
/* set up buffer pointer */
35
entry_length = psio_get_length(this_entry->sadd,this_entry->eadd);
36
Buf->bufpos = psio_get_address(PSIO_ZERO,entry_length);