/* * Return a file buffer all ready to read up the * passed message pointer. */ PUBLIC FILE * setinput(const struct message *mp) { (void)fflush(otf); if (fseek(itf, (long)positionof(mp->m_block, mp->m_offset), SEEK_SET) < 0) err(EXIT_FAILURE, "fseek"); return itf; }
/* * Return a file buffer all ready to read up the * passed message pointer. */ FILE * setinput(struct message *mp) { (void)fflush(otf); if (fseeko(itf, positionof(mp->m_block, mp->m_offset), SEEK_SET) < 0) err(1, "fseeko"); return (itf); }
/* * Return a file buffer all ready to read up the * passed message pointer. */ FILE * setinput(struct message *mp) { fflush(otf); if (fseek(itf, (long)positionof(mp->m_block, mp->m_offset), SEEK_SET) < 0) err(1, "fseek"); return(itf); }