diff options
Diffstat (limited to 'support/dktools/test-dk4mai8ddu.ctr')
-rw-r--r-- | support/dktools/test-dk4mai8ddu.ctr | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/support/dktools/test-dk4mai8ddu.ctr b/support/dktools/test-dk4mai8ddu.ctr deleted file mode 100644 index 8f66f785a2..0000000000 --- a/support/dktools/test-dk4mai8ddu.ctr +++ /dev/null @@ -1,40 +0,0 @@ - - -#include "dk4conf.h" - -#include <stdio.h> - -#include "dk4str8.h" -#include "dk4mao8d.h" -#include "dk4mai8ddu.h" - - - -int main(void) -{ - char buf[128]; - char oub[128]; - dk4_er_t er; - const char *endptr = NULL; - dk4_um_t um; - int res; - while(fgets(buf, sizeof(buf), stdin)) { - dk4str8_normalize(buf, NULL); - dk4error_init(&er); - res = dk4ma_input_c8_dec_dk4_um_t(&um, buf, &endptr, 1, &er); - if (0 != res) { - if (dk4ma_write_c8_decimal_unsigned(oub, sizeof(oub), um, 0, &er)) { - printf("Zahl gelesen: "); - fputs(oub, stdout); - printf("\n"); - } else { - printf("Fehler beim String-Erzeugen!\n"); - } - } else { - printf("Fehler beim Einlesen: %d\n", er.ec); - printf("Fehlerstelle: \"%s\"\n", (endptr ? endptr : "(NULL)")); - } - } - return 0; -} - |