+ memset (buf, 0, sizeof(buf));
+
+ /*
+ * Are there extension records that we have to check?
+ *
+ * 2nd half of the AND is wrong, but since dtaus < 0.5 wrote 01
+ * instead of 00 we should let it in so it can read its own
+ * old files... *sigh*
+ */
+ while (extC > 0 && dtaus_char(buf,4) != 'C' && dtaus_char(buf,4) != 'E') {
+ for (index=0; index < 4; index++) {
+ if ((dtaus_char(buf,index*29) != ' ')) {
+ bufp = buf + index*29;
+ memcpy(x, bufp, 2); tmp[2] = '\0'; bufp+=2;
+ memcpy(tmp, bufp, recC[C_TEXT].len-2); tmp[recC[C_TEXT].len-2] = '\0';
+ printctln(fcontrol, string2ext(x), strip_spaces(tmp));
+ }
+ }
+ if (dtaus_nextrec(buf, fdtaus) != 1)
+ memset (buf, 0, sizeof(buf));
+ extC--;
+ }
+ fprintf(fcontrol, "}\n");