summaryrefslogtreecommitdiff
path: root/support/dktools/test-dk4mai8dbl.c
blob: 54fd96181ee7d1aadee29ca3375a4dd22cca4245 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
	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 <stdio.h>
#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;
}