summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4b1b26c)
well we may use up to 62 text fields
-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
.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 C_EXT 11
#define C_LEN 12
dtaus_record recE[] = {
{"Anzahl", 10, 7, IGN},
dtaus_record recE[] = {
{"Anzahl", 10, 7, IGN},
if (normaltext)
appendix = 1;
if (maxtext) {
if (normaltext)
appendix = 1;
if (maxtext) {
- res = div (maxtext, 4);
+ res = div (maxtext-1, 4);
appendix += res.quot;
if (res.rem) appendix++;
}
appendix += res.quot;
if (res.rem) appendix++;
}
- 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++;
i=res.quot;
if (res.rem) i++;
- if (text) {
- fieldnr=0;
+ if (text && maxtext > 1) {
+ fieldnr=1;
while (fieldnr<maxtext) {
memset (appendix, ' ', 128);
while (fieldnr<maxtext) {
memset (appendix, ' ', 128);
for (k=0; k<4 && (fieldnr+k)<maxtext; k++) {
sprintf (tmp, "%-27s", upcase(text[fieldnr+k]));
appendix[k*29] = '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;
char x[30];
int index, countC;
if (!(fdtaus = fopen("DTAUS0.TXT", "r")))
if (!(fdtaus = fopen("dtaus0.txt", "r")))
return;
if (!(fdtaus = fopen("DTAUS0.TXT", "r")))
if (!(fdtaus = fopen("dtaus0.txt", "r")))
return;