alsa.audio: fill the complete free buffer before executing another audio loop
[AROS.git] / test / printf_f.c
blob4cd62b57f461a7299173f266ecf14b74bcb91534
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/debug.h>
7 #include <dos/dos.h>
9 #include <stdio.h>
10 #include <strings.h>
13 Reason for this test is that formatted printing with %f
14 had crashed on x86_64.
17 int main(void)
19 int retval = RETURN_OK;
21 char buffer[50];
22 float xf = 3.14;
23 double xd = 6.28;
25 sprintf(buffer, "%6.3f %6.3f", xf, xd);
27 if (strcmp(buffer, " 3.140 6.280"))
29 bug("created string is: %s\n", buffer);
30 retval = RETURN_ERROR;
32 return retval;