/* WARNING: This file was generated by dkct. Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: test-dk4mai8dbl.ctr */ /** @file test-dk4mai8dbl.c The test-dk4mai8dbl module. */ #line 1 "test-dk4mai8dbl.ctr" #include "dk4conf.h" #include #include "dk4mai8dbl.h" int main(void) { char buf[256]; dk4_er_t er; double value; const char *endp; while(fgets(buf, sizeof(buf), stdin)) { dk4error_init(&er); if (0 != dk4ma_input_c8_double(&value, buf, &endp, 1, &er)) { printf("Value: %g\n", value); } else { printf("ERROR: %d\n", er.ec); } } return 0; }