2 dtaus.c - Datenträgeraustausch mit einer Bank
3 Copyright (c) 1996,8 Martin Schulze <joey@artis.uni-oldenburg.de>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
31 * First: Some control structures
37 unsigned short int pos;
38 unsigned short int len;
50 dtaus_record recA[] = {
52 {"Name", 23, 27, REQ},
53 {"Konto", 60, 10, REQ},
55 {"Referenz", 70, 10, OPT},
56 {"Datum", 50, 6, IGN},
57 {"Euro", 127, 1, OPT},
70 dtaus_record recC[] = {
71 {"Name", 93, 27, REQ},
72 {"Konto", 21, 10, REQ},
74 {"Transaktion", 44, 5, REQ},
75 {"Betrag", 50, 11, REQ},
76 {"Zweck", 155, 27, REQ},
77 {"myName", 128, 27, OPT},
78 {"myKonto", 69, 10, OPT},
79 {"myBLZ", 61, 8, OPT},
80 {"Euro", 182, 1, IGN},
81 {"Text", 187, 29, OPT},
82 {"Extension", 216, 29, OPT},
100 dtaus_record recE[] = {
101 {"Anzahl", 10, 7, IGN},
102 {"Summe", 17, 13, IGN},
103 {"Kontos", 30, 17, IGN},
104 {"BLZs", 47, 17, IGN},
115 * Second: Some low level routines
118 size_t dtaus_nextrec (void **buf, FILE *f)
121 return fread(buf, 128, 1, f);
124 char *upcase(char *s)
130 for (cp=s,xp=x; *cp; cp++,xp++) {
131 if (strchr(" 0123456789.,&-/+*$%ABCDEFGHIJKLMNOPQRSTUVWXYZ",*cp)) {
133 } else if (strchr("abcdefghijklmnopqrstuvwxyz",*cp)) {
135 } else if (strchr ("üÜäÄöÖß", *cp)) {
137 case 'ü': *(xp++) = 'U'; *xp='E'; break;
138 case 'Ü': *(xp++) = 'U'; *xp='E'; break;
139 case 'ä': *(xp++) = 'A'; *xp='E'; break;
140 case 'Ä': *(xp++) = 'A'; *xp='E'; break;
141 case 'ö': *(xp++) = 'O'; *xp='E'; break;
142 case 'Ö': *(xp++) = 'O'; *xp='E'; break;
143 case 'ß': *(xp++) = 'S'; *xp='S'; break;
153 char *downcase(char *s)
166 char *strip_spaces (char *s)
171 for (i=strlen(s);(s[i-1] == ' '||s[i-1] == '\t')&&i>0; i--)
173 for (p=s; *p==' '; p++);
177 char *strip_zeros (char *s)
181 for (p=s; *p=='0'; p++);
185 char dtaus_char(void *buf, unsigned int pos)
191 memcpy(&res, bufp, 1);
195 char *string2real(char *s)
201 strncpy(res, s, strlen(s)-2);
202 res[strlen(s)-2] = '.';
203 res[strlen(s)-1] = s[strlen(s)-2];
204 res[strlen(s)] = s[strlen(s)-1];
208 char *real2string(char *s)
214 for (cp=res; *cp&&!(*cp == ',')&&!(*cp == '.');cp++);
221 char *string2trans (char *s)
226 if (!strcmp(s, "04000"))
227 sprintf (res, "Abbuchung");
228 else if (!strcmp(s, "05000"))
229 sprintf (res, "Einzug");
230 else if (!strcmp(s, "05005"))
231 sprintf (res, "E-Cash");
232 else if (!strcmp(s, "05006"))
233 sprintf (res, "E-Cash-A");
234 else if (!strcmp(s, "51000"))
235 sprintf (res, "Gutschrift");
236 else if (!strcmp(s, "53000"))
237 sprintf (res, "Lohn");
238 else if (!strncmp(s, "5400", 4))
239 sprintf (res, "Vermögen");
240 /* else if (!strcmp(s, "56000"))
241 sprintf (res, ""); / * Überweisung öffentlicher Kassen */
245 char *trans2string (char *s)
250 if (!strcmp(s, "Abbuchung"))
251 sprintf (res, "04000");
252 else if (!strcmp(s, "Einzug"))
253 sprintf (res, "05000");
254 else if (!strcmp(s, "E-Cash"))
255 sprintf (res, "05005");
256 else if (!strcmp(s, "E-Cash-A"))
257 sprintf (res, "05006");
258 else if (!strcmp(s, "Gutschrift"))
259 sprintf (res, "51000");
260 else if (!strcmp(s, "Lohn"))
261 sprintf (res, "53000");
262 else if (!strncmp(s, "Vermögen", 4))
263 sprintf (res, "5400");
264 /* else if (!strcmp(s, ""))
265 sprintf (res, "56000"); / * Überweisung öffentlicher Kassen */
269 char *string2ext (char *s)
274 if (!strcmp(s, "01"))
275 sprintf (res, "Klient");
276 else if (!strcmp(s, "02"))
277 sprintf (res, "Text");
278 else if (!strcmp(s, "03"))
279 sprintf (res, "Auftraggeber");
283 char *ext2string (char *s)
288 if (!strcmp(s, "Klient"))
290 else if (!strcmp(s, "Text"))
292 else if (!strcmp(s, "Auftraggeber"))
297 unsigned long int dtaus_int(void *buf, unsigned int pos, unsigned int len)
301 static unsigned long int res;
304 memcpy(tmp, bufp, len);
306 sscanf(tmp, "%lu", &res);
311 * returns the first word in this line, returns it and shortens the
314 char *extract_ident (char *line)
317 static char word[30];
319 if (strlen(line) > 0) {
320 x = index (line, ' ');
321 y = index (line, '\t');
324 strncpy(word, line, 29);
329 /* Check which index returns the lower value, and check if the
331 if ((c = (x && x<y)?x:(y?y:x))) {
332 strncpy(word, line, c - line);
334 for (;*c == '\t' || *c == ' '; c++);
335 for (x=line; *c; c++,x++)
338 strcpy(word, downcase(word));
346 int rec_index(char *ident, int type)
349 dtaus_record *rec = NULL;
352 case REC_A: rec = recA; break;
353 case REC_C: rec = recC; break;
354 case REC_E: rec = recE; break;
357 for (i=0; (rec[i].name); i++) {
358 if (!strcmp(ident, downcase(rec[i].name)))
365 size_t control_nextline (void **buf, int len, FILE *f)
372 bzero (line, sizeof(line));
376 while (!strlen(line) && (cp = fgets(line, 100, f))) {
378 if (line[0] != '#') {
379 if (line[strlen(line)-1] != '\n') {
381 while (tmp[strlen(tmp)-1] != '\n' && (cp = fgets(tmp, 100, f)));
383 line[strlen(line)-1] = '\0';
384 if (line[strlen(line)-1] == '
\r')
385 line[strlen(line)-1] = '\0';
386 for (i=strlen(line);(line[i-1] == ' '||line[i-1] == '\t')&&i>0; i--)
394 for (cp=line; *cp==' '; cp++);
397 memcpy(buf, cp, strlen(cp));
409 timer = time ( NULL );
410 loctime = localtime(&timer);
411 sprintf(res, "%02d.%02d.%02d", loctime->tm_mday, loctime->tm_mon+1, loctime->tm_year);
415 void dtaus_prepareA(char *buf)
423 timer = time ( NULL );
424 loctime = localtime(&timer);
431 for (i=15;i<15+8; i++) buf[i] = '0';
432 sprintf(tmp, "%02d%02d%2d", loctime->tm_mday, loctime->tm_mon+1, loctime->tm_year);
433 for (i=0; i<6; i++) buf[50+i] = tmp[i];
434 for (i=56;i<56+4; i++) buf[i] = ' ';
435 for (i=70;i<70+10; i++) buf[i] = '0';
436 for (i=80;i<80+48; i++) buf[i] = ' ';
439 void dtaus_prepareC(char *buf)
449 for (i=31;i<31+13; i++) buf[i] = '0';
451 for (i=79;i<79+11; i++) buf[i] = '0';
452 for (i=90;i<90+3; i++) buf[i] = ' ';
453 for (i=120;i<120+8; i++) buf[i] = ' ';
454 for (i=182;i<182+3; i++) buf[i] = ' ';
455 for (i=185;i<185+2; i++) buf[i] = '0';
456 for (i=187;i<187+(29*2); i++) buf[i] = ' ';
457 for (i=245;i<245+11; i++) buf[i] = ' ';
460 void dtaus_prepareE(char *buf)
470 for (i=5;i<5+5; i++) buf[i] = ' ';
471 for (i=64;i<64+13; i++) buf[i] = '0';
472 for (i=77;i<77+51; i++) buf[i] = ' ';
475 int dtaus_writeA(FILE *f, char **values)
481 for (i=0; (recA[i].name); i++)
482 if ((recA[i].type == REQ) && !values[i]) {
483 fprintf (stderr, "Anfangsdatensatz ist nicht vollständig, kein %s.\n", recA[i].name);
486 if (!(((values[A_TRANS][0] == 'L')||(values[A_TRANS][0] == 'G'))
487 &&((values[A_TRANS][1] == 'B')||(values[A_TRANS][1] == 'K')))) {
488 fprintf (stderr, "Ungueltiger Typ, nur LK, GK, LB oder GB erlaubt.\n");
492 i=A_NAME;if (values[i] && strlen(values[i]) > recA[i].len)
493 values[i][recA[i].len] = '\0';
496 buf[5] = values[A_TRANS][0];
497 buf[6] = values[A_TRANS][1];
498 sprintf (tmp, "%08s", values[A_BLZ]);
499 for (i=0; i<8; i++) buf[recA[A_BLZ].pos+i] = tmp[i];
500 sprintf (tmp, "%-27s", upcase(values[A_NAME]));
501 for (i=0; i<27; i++) buf[recA[A_NAME].pos+i] = tmp[i];
502 sprintf (tmp, "%010s", values[A_KTO]);
503 for (i=0; i<10; i++) buf[recA[A_KTO].pos+i] = tmp[i];
509 int dtaus_writeC(FILE *f, char **valuesA, char **values)
516 for (i=0; (recC[i].name); i++)
518 printf ("%s: %s\n", recC[i].name, values[i]);
521 for (i=0; (recC[i].name); i++)
522 if ((recC[i].type == REQ) && !values[i]) {
523 fprintf (stderr, "Datensatz ist nicht vollständig, kein %s.\n", recC[i].name);
526 sprintf (tmp, "%s", trans2string(values[C_TRANS]));
528 fprintf (stderr, "Ungültiger Typ, nur Abbuchung, Einzug, E-Cash, E-Cash-A, Gutschrift und Lohn erlaubt.\n");
532 i=C_TEXT;if (values[i] && strlen(values[i]) > recC[i].len)
533 values[i][recC[i].len] = '\0';
534 i=C_ZWECK;if (values[i] && strlen(values[i]) > recC[i].len)
535 values[i][recC[i].len] = '\0';
536 i=C_MYNAM;if (values[i] && strlen(values[i]) > recC[i].len)
537 values[i][recC[i].len] = '\0';
538 i=C_TEXT;if (values[i] && strlen(values[i]) > recC[i].len)
539 values[i][recC[i].len] = '\0';
540 i=C_EXT;if (values[i] && strlen(values[i]) > recC[i].len)
541 values[i][recC[i].len] = '\0';
544 if (!values[C_TEXT]) {
549 for (i=0; i<5; i++) buf[recC[C_TRANS].pos+i] = tmp[i];
551 sprintf (tmp, "%08s", values[C_MYBLZ]);
553 sprintf (tmp, "%08s", valuesA[A_BLZ]);
554 for (i=0; i<recC[C_MYBLZ].len; i++) buf[5+i] = tmp[i];
555 for (i=0; i<recC[C_MYBLZ].len; i++) buf[recC[C_MYBLZ].pos+i] = tmp[i];
556 sprintf (tmp, "%08s", values[C_BLZ]);
557 for (i=0; i<recC[C_BLZ].len; i++) buf[recC[C_BLZ].pos+i] = tmp[i];
558 sprintf (tmp, "%010s", values[C_KTO]);
559 for (i=0; i<recC[C_KTO].len; i++) buf[recC[C_KTO].pos+i] = tmp[i];
560 sprintf (tmp, "%011s", real2string(values[C_VAL]));
561 for (i=0; i<recC[C_VAL].len; i++) buf[recC[C_VAL].pos+i] = tmp[i];
563 sprintf (tmp, "%010s", values[C_MYKTO]);
565 sprintf (tmp, "%010s", valuesA[A_KTO]);
566 for (i=0; i<recC[C_MYKTO].len; i++) buf[recC[C_MYKTO].pos+i] = tmp[i];
567 sprintf (tmp, "%-27s", upcase(values[C_NAME]));
568 for (i=0; i<recC[C_NAME].len; i++) buf[recC[C_NAME].pos+i] = tmp[i];
570 sprintf (tmp, "%-27s", upcase(values[C_MYNAM]));
572 sprintf (tmp, "%-27s", upcase(valuesA[A_NAME]));
573 for (i=0; i<recC[C_MYNAM].len; i++) buf[recC[C_MYNAM].pos+i] = tmp[i];
574 sprintf (tmp, "%-27s", upcase(values[C_ZWECK]));
575 for (i=0; i<recC[C_ZWECK].len; i++) buf[recC[C_ZWECK].pos+i] = tmp[i];
577 if (!values[C_TEXT]) {
578 buf[recC[C_TEXT].pos+0] = ' ';
579 buf[recC[C_TEXT].pos+1] = ' ';
583 buf[recC[C_TEXT].pos+0] = '0';
584 buf[recC[C_TEXT].pos+1] = '2';
585 sprintf (tmp, "%-27s", upcase(values[C_TEXT]));
586 for (i=0; i<recC[C_TEXT].len-2; i++) buf[recC[C_TEXT].pos+2+i] = tmp[i];
592 int dtaus_writeE(FILE *f, int count, bigint sum, bigint blz, bigint kto)
600 sprintf (tmp, "%07d", count);
601 for (i=0; i<recE[E_COUNT].len; i++) buf[recE[E_COUNT].pos+i] = tmp[i];
602 bigint_sprintf (tmp, "%013s", sum);
603 for (i=0; i<recE[E_VAL].len; i++) buf[recE[E_VAL].pos+i] = tmp[i];
604 bigint_sprintf (tmp, "%013s", sum);
605 for (i=0; i<recE[E_VAL].len; i++) buf[recE[E_VAL].pos+i] = tmp[i];
606 bigint_sprintf (tmp, "%017s", kto);
607 for (i=0; i<recE[E_KTO].len; i++) buf[recE[E_KTO].pos+i] = tmp[i];
608 bigint_sprintf (tmp, "%017s", blz);
609 for (i=0; i<recE[E_BLZ].len; i++) buf[recE[E_BLZ].pos+i] = tmp[i];
615 void printctln(FILE *f, char *field, char *value)
617 if (strlen(field) && strlen(value))
618 fprintf(f, " %s\t%s\n", field, value);
623 * Third: Some high level routines
626 void dtaus2control (char *cdtaus, char *ccontrol)
628 FILE *fdtaus, *fcontrol;
636 if (!(fdtaus = fopen("DTAUS0.TXT", "r")))
637 if (!(fdtaus = fopen("dtaus0.txt", "r")))
640 if (!(fdtaus = fopen(cdtaus, "r")))
645 if (!(fcontrol = fopen(ccontrol, "w")))
647 if (!(buf = (char *)malloc (512)))
653 if (dtaus_nextrec(buf, fdtaus) == 1) {
654 if (dtaus_char(buf,4) == 'A') {
655 fprintf(fcontrol, "BEGIN {\n");
658 for (index=A_TRANS; index < A_DATE; index++) {
659 bufp = buf + recA[index].pos;
660 memcpy(tmp, bufp, recA[index].len); tmp[recA[index].len] = '\0';
661 printctln(fcontrol, recA[index].name, strip_zeros(strip_spaces(tmp)));
664 index = A_DATE; bufp = buf + recA[index].pos;
665 memcpy(tmp, bufp, recA[index].len); tmp[recA[index].len] = '\0';
666 printctln(fcontrol, recA[index].name, strip_spaces(tmp));
668 index = A_EURO; bufp = buf + recA[index].pos;
669 memcpy(tmp, bufp, recA[index].len); tmp[recA[index].len] = '\0';
670 printctln(fcontrol, recA[index].name, strip_zeros(strip_spaces(tmp)));
672 fprintf(fcontrol, "}\n\n");
674 fprintf (stderr, "Datei fängt nicht mit dem Anfangsdatensatz an.\n");
678 fprintf (stderr, "Der Anfangsdatensatz ist kaputt.\n");
685 if (dtaus_nextrec(buf, fdtaus) == 1) {
686 while (dtaus_char(buf,4) == 'C') {
688 if (dtaus_nextrec(bufp, fdtaus) == 1) {
689 fprintf(fcontrol, "{\n");
691 for (index=C_NAME; index <= C_EURO; index++) {
692 bufp = buf + recC[index].pos;
693 memcpy(tmp, bufp, recC[index].len); tmp[recC[index].len] = '\0';
695 printctln(fcontrol, recC[index].name, strip_zeros(string2real(tmp)));
696 else if (index == C_TRANS)
697 printctln(fcontrol, recC[index].name, strip_zeros(string2trans(tmp)));
699 printctln(fcontrol, recC[index].name, strip_zeros(strip_spaces(tmp)));
702 for (index=C_TEXT; index <= C_EXT; index++) {
703 if (!(dtaus_char(buf,recC[index].pos) == ' ')) {
704 bufp = buf + recC[index].pos;
705 memcpy(x, bufp, 2); tmp[2] = '\0'; bufp+=2;
706 memcpy(tmp, bufp, recC[index].len-2); tmp[recC[index].len-2] = '\0';
707 printctln(fcontrol, string2ext(x), strip_spaces(tmp));
711 countC = dtaus_int(buf, 185, 2);
712 countC = countC<3?0:countC-2/4;
713 countC += countC%4>0?1:0;
714 /* FIXME: Erweiterungsfelder werden ignoriert */
716 fprintf(fcontrol, "}\n");
718 fprintf (stderr, "Der zweite Teil der Transaktion ist kaputt.\n");
721 if (dtaus_nextrec(buf, fdtaus) != 1)
722 bzero (buf, sizeof(buf));
728 * (gelesen ist er eigentlich schon...)
730 if (dtaus_char(buf,4) == 'E') {
731 if (dtaus_char(buf,4) == 'E') {
732 fprintf(fcontrol, "END {\n");
734 for (index=E_COUNT; index <= E_BLZ; index++) {
735 bufp = buf + recE[index].pos;
736 memcpy(tmp, bufp, recE[index].len); tmp[recE[index].len] = '\0';
738 printctln(fcontrol, recE[index].name, strip_zeros(string2real(tmp)));
740 printctln(fcontrol, recE[index].name, strip_zeros(tmp));
743 fprintf(fcontrol, "}\n");
745 fprintf (stderr, "Das ist kein Abschlußdatensatz.\n");
749 fprintf (stderr, "Der Abschlußdatensatz ist leer oder kaputt.\n");
756 int control2dtaus (char *ccontrol, char *cdtaus, char *cbeleg, char *ccheck)
758 FILE *fdtaus, *fcontrol, *fbeleg, *fcheck;
764 char *valA[A_LEN], *valC[C_LEN];
766 bigint sum_val, sum_blz, sum_kto, bi;
769 if (!(fdtaus = fopen("dtaus0.txt", "w")))
772 if (!(fdtaus = fopen(cdtaus, "w")))
775 if (!(fcontrol = fopen("dtaus0.ctl", "r")))
776 if (!(fcontrol = fopen("DTAUS0.CTL", "r")))
779 if (!(fcontrol = fopen(ccontrol, "r")))
782 if (!(fbeleg = fopen("dtaus0.doc", "w")))
785 if (!(fbeleg = fopen(cbeleg, "w")))
790 if (!(fcheck = fopen(ccheck, "w")))
794 if (!(buf = (char *)malloc (512)))
800 bzero(valA, sizeof(valA));
801 control_nextline ((void *)line, 100, fcontrol);
802 ident = extract_ident(line);
803 if (!strcmp(ident, "begin") && (line[0] == '{')) {
804 fprintf(fbeleg, "\n\n");
805 fprintf(fbeleg, "\n Begleitzettel\n\n");
806 fprintf(fbeleg, "\n Belegloser Datentraegeraustausch\n\n");
807 fprintf(fbeleg, "\n Sammeleinziehungsauftrag\n\n");
808 fprintf(fbeleg, "\n VOL ........................:\n");
809 fprintf(fbeleg, "\n Erstellungsdatum ...........: %s\n", get_date());
811 control_nextline ((void *)line, 100, fcontrol);
812 while (strlen(line) && line[0] != '}') {
813 ident = extract_ident(line);
814 if ((recindex = rec_index(ident, REC_A)) != -1)
815 if (recA[recindex].type != IGN)
816 if ((valA[recindex] = (char *)malloc (strlen(line)+1)))
817 strcpy(valA[recindex], line);
818 control_nextline ((void *)line, 100, fcontrol);
820 if (!dtaus_writeA(fdtaus, valA)) {
821 fprintf (stderr, "Konnte den Anfangsdatensatz nicht schreiben.\n");
825 fprintf (fcheck, "\n\n\n");
826 fprintf (fcheck, " Sammeleinzeiehungsauftrag\n\n");
827 fprintf (fcheck, " Erstellungsdatum : %s\n\n\n", get_date());
828 fprintf (fcheck, " %-10s %-8s %-30s %12s\n", "Kontonr.", "BLZ", "Name", "Betrag");
829 fprintf (fcheck, " --------------------------------------------------------------------\n");
831 fprintf (stderr, "Datei fängt nicht mit dem Anfangsdatensatz (BEGIN) an.\n");
839 sum_val = bigint_int(0);
840 sum_blz = bigint_int(0);
841 sum_kto = bigint_int(0);
842 bzero(valC, sizeof(valC));
843 control_nextline ((void *)line, 100, fcontrol);
844 if (line[0] == '{') {
845 while (strlen(line) && line[0] == '{') {
846 control_nextline ((void *)line, 100, fcontrol);
847 while (strlen(line) && line[0] != '}') {
848 ident = extract_ident(line);
849 if ((recindex = rec_index(ident, REC_C)) != -1)
850 if (recC[recindex].type != IGN)
851 if ((valC[recindex] = (char *)malloc (strlen(line)+1)))
852 strcpy(valC[recindex], line);
855 control_nextline ((void *)line, 100, fcontrol);
857 if (!dtaus_writeC(fdtaus, valA, valC)) {
858 fprintf (stderr, "Konnte den regulären Datensatz nicht schreiben.\n");
862 bi = bigint_string(real2string(valC[C_VAL])); sum_val = bigint_add(sum_val, bi);
863 bi = bigint_string(valC[C_BLZ]); sum_blz = bigint_add(sum_blz, bi);
864 bi = bigint_string(valC[C_KTO]); sum_kto = bigint_add(sum_kto, bi);
866 fprintf (fcheck, " %10s %8s %-30s %12s\n", valC[C_KTO], valC[C_BLZ], valC[C_NAME], valC[C_VAL]);
867 for (recindex=0; recindex<C_LEN; recindex++)
869 free(valC[recindex]);
870 bzero(valC, sizeof(valC));
871 control_nextline ((void *)line, 100, fcontrol);
874 fprintf (stderr, "Kein regulärer Datensatz?\n");
881 dtaus_writeE(fdtaus, count, sum_val, sum_blz, sum_kto);
882 fprintf (fcheck, " --------------------------------------------------------------------\n");
883 bigint_sprintf (tmp, "%s", sum_val);
884 fprintf (fbeleg, "\n Anzahl .....................: %d\n", count);
885 recindex=strlen(tmp);
886 tmp[recindex+1] = '\0';
887 tmp[recindex] = tmp[recindex-1];
888 tmp[recindex-1] = tmp[recindex-2];
889 tmp[recindex-2] = '.';
890 fprintf (fcheck, " %-52s %14s\n", "Summe", tmp);
891 fprintf (fbeleg, "\n Summe ......................: %s\n", tmp);
892 bigint_sprintf (tmp, "%s", sum_kto);
893 fprintf (fbeleg, "\n Kontrollsumme Kontonummern .: %s\n", tmp);
894 bigint_sprintf (tmp, "%s", sum_blz);
895 fprintf (fbeleg, "\n Kontrollsumme Bankleitzahlen: %s\n", tmp);
896 fprintf (fbeleg, "\n Unsere Kontonummer .........: %s\n", valA[A_KTO]);
897 fprintf (fbeleg, "\n Unsere Bankleitzahl ........: %s\n", valA[A_BLZ]);
898 fprintf (fbeleg, "\n\n\n\n\n __________________________________________________\n");
899 fprintf (fbeleg, " Ort, Datum Unterschrift\n");
900 for (recindex=0; recindex<A_LEN; recindex++)
902 free(valA[recindex]);