...
-You may use up to 61 fields entitle
+You may use up to 62 fields entitle
.BR Text .
They will be recorded one by one and stored into additional data
records. This way you could add a detailed description of the type of
#define C_EXT 11
#define C_LEN 12
-#define MAX_TEXT 60
+#define MAX_TEXT 61
dtaus_record recE[] = {
{"Anzahl", 10, 7, IGN},
if (normaltext)
appendix = 1;
if (maxtext) {
- res = div (maxtext, 4);
+ res = div (maxtext-1, 4);
appendix += res.quot;
if (res.rem) appendix++;
}
}
if (text) {
- res = div (maxtext, 4);
+ buf[recC[C_EXT].pos+0] = '0';
+ buf[recC[C_EXT].pos+1] = '2';
+ sprintf (tmp, "%-27s", upcase(text[0]));
+ for (i=0; i<recC[C_EXT].len-2; i++) buf[recC[C_EXT].pos+2+i] = tmp[i];
+
+ res = div (maxtext-1, 4);
i=res.quot;
if (res.rem) i++;
fputs(buf, f);
- if (text) {
- fieldnr=0;
+ if (text && maxtext > 1) {
+ fieldnr=1;
while (fieldnr<maxtext) {
memset (appendix, ' ', 128);
- appendix[128] = '0';
+ appendix[128] = '\0';
for (k=0; k<4 && (fieldnr+k)<maxtext; k++) {
sprintf (tmp, "%-27s", upcase(text[fieldnr+k]));
appendix[k*29] = '0';
char x[30];
int index, countC;
- if (!cdtaus) {{
+ if (!cdtaus) {
if (!(fdtaus = fopen("DTAUS0.TXT", "r")))
if (!(fdtaus = fopen("dtaus0.txt", "r")))
return;