timer.device: Use AROS_UFIx() macros
[AROS.git] / test / printf_f.c
blobddbc25e65a5b61563f0772fa7abbdb39e08d62a6
1 #include <aros/debug.h>
2 #include <dos/dos.h>
4 #include <stdio.h>
5 #include <strings.h>
7 /*
8 Reason for this test is that formatted printing with %f
9 had crashed on x86_64.
12 int main(void)
14 int retval = RETURN_OK;
16 char buffer[50];
17 float xf = 3.14;
18 double xd = 6.28;
20 sprintf(buffer, "%6.3f %6.3f", xf, xd);
22 if (strcmp(buffer, " 3.140 6.280"))
24 bug("created string is: %s\n", buffer);
25 retval = RETURN_ERROR;
27 return retval;