- fgets(linebuf, sizeof linebuf, iof); /* scan to next \n */
- fgets(linebuf, sizeof linebuf, iof); /* get a line */
- linebuf[strlen(linebuf)-1] = 0; /* was '\n' */
+ /* scan to next \n */
+ if(tgets(linebuf, sizeof linebuf, iof)==NULL)
+ goto goleft;
+ /* get the line itself */
+ if(tgets(linebuf, sizeof linebuf, iof)==NULL)
+ goto goleft;
+#ifdef TDEBUG
+ ex_printf("tag: %o %o %o %s\n", bot, mid, top, linebuf);
+#endif