From: Joey Schulze Date: Sat, 17 Nov 2001 20:00:09 +0000 (+0000) Subject: . Made some length values indirect through our data definition X-Git-Url: https://git.infodrom.org/?p=infodrom%2Fdtaus;a=commitdiff_plain;h=edf3cb63bc3ffbdb9f78ccd892de87db5c5d969c . Made some length values indirect through our data definition . Added support for ``Ausführungsdatum'' ("Ausfuehrung"), the date when this transfer should be started instead of the receiption date. Users have to take care of its restrictions, though. --- 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