#ifndef lint
static const char rcsid[] =
- "$Id: tape.c,v 1.100 2010/12/06 14:26:51 stelian Exp $";
+ "$Id: tape.c,v 1.102 2011/06/08 15:40:53 stelian Exp $";
#endif /* not lint */
#include <config.h>
fprintf(stderr, "otherwise enter tape name (default: %s) ", magtape);
#endif
(void) fflush(stderr);
- if (fgets(buf, TP_BSIZE, terminal))
+ if (!fgets(buf, TP_BSIZE, terminal))
exit(1);
if (feof(terminal))
exit(1);
((struct s_spcl *)&tapebuf[i * TP_BSIZE])->c_magic = 0;
numtrec = ntrec;
tpb = (struct tapebuf *) tapebuf;
+#ifdef USE_QFA
+ if (createtapeposflag)
+ (void)GetTapePos(&curtapepos);
+#endif
/* read the block prefix */
ret = read_a_block(mt, tapebuf, PREFIXSIZE, &rl);
((struct s_spcl *)&tapebuf[i * TP_BSIZE])->c_magic = 0;
numtrec = ntrec;
tpb = (struct tapebuf *) tapebuf;
+#ifdef USE_QFA
+ if (createtapeposflag)
+ (void)GetTapePos(&curtapepos);
+#endif
/* read the block */
size = bufsize + PREFIXSIZE;