From edf3cb63bc3ffbdb9f78ccd892de87db5c5d969c Mon Sep 17 00:00:00 2001 From: Joey Schulze Date: Sat, 17 Nov 2001 20:00:09 +0000 Subject: [PATCH] =?utf8?q?=20.=20Made=20some=20length=20values=20indirect?= =?utf8?q?=20through=20our=20data=20definition=20=20.=20Added=20support=20?= =?utf8?q?for=20``Ausf=C3=BChrungsdatum''=20("Ausfuehrung"),=20the=20date?= =?utf8?q?=20=20=20=20when=20this=20transfer=20should=20be=20started=20ins?= =?utf8?q?tead=20of=20the=20receiption=20=20=20=20date.=20=20Users=20have?= =?utf8?q?=20to=20take=20care=20of=20its=20restrictions,=20though.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- dtaus.c | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/dtaus.c b/dtaus.c index 7376627..e19732d 100644 --- a/dtaus.c +++ b/dtaus.c @@ -60,6 +60,7 @@ dtaus_record recA[] = { {"BLZ", 7, 8, REQ}, {"Referenz", 70, 10, OPT}, {"Datum", 50, 6, IGN}, + {"Ausfuehrung", 95, 8, OPT}, {"Euro", 127, 1, OPT}, {NULL, 0, 0} }; @@ -70,8 +71,9 @@ dtaus_record recA[] = { #define A_BLZ 3 #define A_REF 4 #define A_DATE 5 -#define A_EURO 6 -#define A_LEN 7 +#define A_TODO 6 +#define A_EURO 7 +#define A_LEN 8 dtaus_record recC[] = { {"Name", 93, 27, REQ}, @@ -609,12 +611,16 @@ int dtaus_writeA(FILE *f, char **values) dtaus_prepareA(buf); buf[5] = values[A_TRANS][0]; buf[6] = values[A_TRANS][1]; - sprintf (tmp, "%s", padzeroclip (strip_nondigits (values[A_BLZ]),8)); - for (i=0; i<8; i++) buf[recA[A_BLZ].pos+i] = tmp[i]; + sprintf (tmp, "%s", padzeroclip (strip_nondigits (values[A_BLZ]),recA[A_BLZ].len)); + for (i=0; i